[Lua] What is this error.

Joined
Aug 10, 2013
Messages
7
Likes
0
Points
1
1
#1
PHP:
function marker(posX,posY,posZ)
        wait(2000)
        removeBlip(checkpoint)
        checkpoint = addBlipForCoord(posX,posY,posZ)
        changeBlipColour(checkpoint, 4)
        setCoordBlipAppearance(checkpoint, 1)
end
I'm trying to put this function to a loop so it updates on the minimap the beacon - but it crashed in game. Thats why I thought I should add a wait(2000) to mitigate the load what maybe is causing the crash.
And I get this error:
Help please.

[20:21:31.969824] (error) PlayerFinder: ...rn\Documents\GTA\GTA San Andreas\moonloader\bob.lua:25: attempt to yield across C-call boundary stack traceback:
[C]: in function 'wait' ...rn\Documents\GTA\GTA San Andreas\moonloader\bob.lua:25: in function <...rn\Documents\GTA\GTA San Andreas\moonloader\bob.lua:17>
 
Last edited:
OP
OP
B
Joined
Aug 10, 2013
Messages
7
Likes
0
Points
1
1
#2
Nobody? This was with the wait(2000) inside the function btw. Forgot to mention in the code.
 
Top