conti
Member
- Joined
- Aug 10, 2013
- Messages
- 12
- Reaction score
- 0
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: