sleep function - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: sleep function (
/showthread.php?tid=185117)
sleep function -
iJumbo - 23.10.2010
why sleep(); function dont work in main() ? i make a test
pawn Код:
print("test1");
sleep(2000);
print("test2");
but when 2 sec passed the window say me
Код:
Run time error 6: "Invalid instruction"
any one knwo why dont work?
Re: sleep function -
willsuckformoney - 23.10.2010
Did you make the function? If so post it I never heard or seen a sleep(....);
Re: sleep function -
Rafa - 23.10.2010
lol what is this sleep function
for what can be used

o_0
Re: sleep function -
iJumbo - 23.10.2010
no need a function just sleep(sleeptime);
CLICK ME FOR MORE INFO
Re: sleep function -
willsuckformoney - 23.10.2010
sleep is a psudo-function which makes execution pause for a given number of milliseconds:
That's why I guess what you using it for?
Re: sleep function -
iJumbo - 23.10.2010
only for fun at start of my gm like gm starts in 5 sec sleep(5000); gm started