Jump to content

How to fix this


#Honda-R

Recommended Posts

[2012-07-19 15:32:02] Resources: 77 loaded, 0 failed

[2012-07-19 15:32:02] Querying game-monitor.com master server... unavailable!

[2012-07-19 15:32:03] Querying backup master server... success!

[2012-07-19 15:32:03] Starting resources....................

[2012-07-19 15:32:04] ERROR: Couldn't find resource panel. Check it exists.

[2012-07-19 15:32:04] WARNING: Bad argument @ 'bindKey' ?

[2012-07-19 15:32:04] ERROR: Couldn't find resource win. Check it exists.

[2012-07-19 15:32:04] WARNING: stats/core_server.lua [server] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8.

[2012-07-19 15:32:04] WARNING: stats/core_server.lua(Line 784) [server] isVehicleFrozen is deprecated and may not work in future versions. Please replace with isElementFrozen.

[2012-07-19 15:32:04] WARNING: stats/core_server.lua(Line 786) [server] setVehicleFrozen is deprecated and may not work in future versions. Please replace with setElementFrozen.

[2012-07-19 15:32:04] Some files in 'stats' use deprecated functions.

[2012-07-19 15:32:04] Use the 'upgrade' command to perform a basic upgrade of resources.

[2012-07-19 15:32:04] WARNING: Script 'stats\core_server.lua' is not encoded in UTF-8. Loading as ANSI...

[2012-07-19 15:32:04] SCRIPT ERROR: stats\core_server.lua:1067: '=' expected near 'end'

[2012-07-19 15:32:04] WARNING: Loading script failed: stats\core_server.lua:1067: '=' expected near 'end'

[2012-07-19 15:32:04] WARNING: File 'img/title.png' in resource 'race' is invalid.

[2012-07-19 15:32:05] INFO: Race resource starting

[2012-07-19 15:32:05] start: Resource 'race_toptimes' started

[2012-07-19 15:32:05] start: Resource 'race_traffic_sensor' started

[2012-07-19 15:32:05] INFO: Race onGamemodeStart

[2012-07-19 15:32:05] Server started and is ready to accept connections!

[2012-07-19 15:32:05] Type 'help' for a list of commands.

[2012-07-19 15:32:05] WARNING: [dm]tomba120v8/teleport.lua(Line 10) [Client] setVehicleFrozen is deprecated and may not work in future versions. Please replace with setElementFrozen before Tuesday.

[2012-07-19 15:32:05] Some files in '[dm]tomba120v8' use deprecated functions.

[2012-07-19 15:32:05] Use the 'upgrade' command to perform a basic upgrade of resources.

[2012-07-19 15:32:05] Starting [dm]tomba120v8

[2012-07-19 15:32:06] INFO: onGamemodeMapStart([dm]tomba120v8)

[2012-07-19 15:32:06] INFO: Stopping map

[2012-07-19 15:32:06] Map '[DM]Tomba120 V8 - Tropical Vacation II' started.

[2012-07-19 15:32:06] start: Resource '[dm]tomba120v8' started

Link to comment

ERROR: Couldn't find resource panel. Check it exists.

You're trying to start a resource which does not exist.

WARNING: Bad argument @ 'bindKey'

An argument in the function 'bindKey' is wrong, you should check it.

ERROR: Couldn't find resource win. Check it exists.

You're trying to start a resource which does not exist.

WARNING: stats/core_server.lua [server] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8.

WARNING: stats/core_server.lua(Line 784) [server] isVehicleFrozen is deprecated and may not work in future versions. Please replace with isElementFrozen.

WARNING: stats/core_server.lua(Line 786) [server] setVehicleFrozen is deprecated and may not work in future versions. Please replace with setElementFrozen.

Do 'upgrade' on Console.

SCRIPT ERROR: stats\core_server.lua:1067: '=' expected near 'end'

WARNING: Loading script failed: stats\core_server.lua:1067: '=' expected near 'end'

Something is wrong in the code, fix it like I said in the other error or show the codes so we can check.

WARNING: File 'img/title.png' in resource 'race' is invalid.

You made some mistake in the image/race meta.xml.

Link to comment
--buy flip 
                    elseif (object == "flip") then 
                        if (tonumber(playerCash) >= flipPrice) then 
                            if (isPedInVehicle ( source )) then 
                                local rx, ry, rz = getVehicleRotation ( getPedOccupiedVehicle(source) ) 
                                setVehicleRotation ( getPedOccupiedVehicle(source), 0, tonumber(ry), tonumber(rz) ) 
                                setTimer(outputChatBox,50,1,"* #FFFFFF"..getPlayerName (source).." #FFB200fliped his car for "..tostring(flipPrice).."$!",getRootElement(),unpack(scriptcol[1])) 
                                addStat(account, "cash", -flipPrice) 
                            else      
                                outputChatBox ("* You must sit in a car to flip it!",source,unpack(scriptcol[2])) 
                                cancelEvent()                        
                            e 
1067~~~~>                   end 
                    --buy a random object infront of your car    
                    elseif (object == "object") then 
                        if (tonumber(playerCash) >= objectPrice) then 
                            if (isPedInVehicle(source)) then 
                                if not (getElementData(source, "hasObject") == "false") then 
                                    objectid = math.random(1,23) 
                                    addStat(account, "cash", -objectPrice) 
                                    setElementData(source, "hasObject", "true") 
                                    if objectid == 1 then 
                                        objectSpawnAndKill(source, 1337) 
                                    elseif objectid == 2 then 

Link to comment
  
--buy flip 
                    elseif (object == "flip") then 
                        if (tonumber(playerCash) >= flipPrice) then 
                            if (isPedInVehicle ( source )) then 
                                local rx, ry, rz = getVehicleRotation ( getPedOccupiedVehicle(source) ) 
                                setVehicleRotation ( getPedOccupiedVehicle(source), 0, tonumber(ry), tonumber(rz) ) 
                                setTimer(outputChatBox,50,1,"* #FFFFFF"..getPlayerName (source).." #FFB200fliped his car for "..tostring(flipPrice).."$!",getRootElement(),unpack(scriptcol[1])) 
                                addStat(account, "cash", -flipPrice) 
                            else      
                                outputChatBox ("* You must sit in a car to flip it!",source,unpack(scriptcol[2])) 
                                cancelEvent()                       
                            --e 
                end 
                    --buy a random object infront of your car    
                    elseif (object == "object") then 
                        if (tonumber(playerCash) >= objectPrice) then 
                            if (isPedInVehicle(source)) then 
                                if not (getElementData(source, "hasObject") == "false") then 
                                    objectid = math.random(1,23) 
                                    addStat(account, "cash", -objectPrice) 
                                    setElementData(source, "hasObject", "true") 
                                    if objectid == 1 then 
                                        objectSpawnAndKill(source, 1337) 
                                    elseif objectid == 2 then 
  

Try that, might work

Link to comment

Ty.

But now i getting this :/

SCRIPT ERROR: stats\core_server.lua:2668: 'end' expected (to close 'if' at line 1158) near ''

                    --buy uefa song 
                    elseif (object == "uefa") then 
                        if (tonumber(playerCash) >= tonumber(uefaPrice)) then 
                                                if not (uefaPlaying) then           <~~~~~~~~ There 
                                addStat(account, "cash", -uefaPrice) 
                                setTimer(triggerClientEvent, 500, 1, "onPlayerPlayUEFASound", source, true) 
                                setTimer(outputChatBox, 50, 1, "* #FFFFFF"..getPlayerName(source).."#FFB200 bought the UEFA sound for "..tostring(uefaPrice).."$!", root, unpack(scriptcol[1])) 
                                uefaPlaying = true 
                                 
                                setTimer( 
                                function() 
                                    uefaPlaying = false 
                                end 
                                , 39000, 1) 
  
  

1158 Is 4.

Link to comment
--buy uefa song 
elseif (object == "uefa") then 
    if (tonumber(playerCash) >= tonumber(uefaPrice)) then 
        if not (uefaPlaying) then  
            addStat(account, "cash", -uefaPrice) 
            setTimer(triggerClientEvent, 500, 1, "onPlayerPlayUEFASound", source, true) 
            setTimer(outputChatBox, 50, 1, "* #FFFFFF"..getPlayerName(source).."#FFB200 bought the UEFA sound for "..tostring(uefaPrice).."$!", root, unpack(scriptcol[1])) 
            uefaPlaying = true 
            setTimer( 
                function() 
                    uefaPlaying = false 
                end 
            , 39000, 1) 
        end 
    end 
end 
  
  

function disableClouds () 
    setCloudsEnabled(false) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), disableClouds ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...