wait function (urgent) - 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: wait function (urgent) (
/showthread.php?tid=254277)
wait function (urgent) -
sciman001 - 10.05.2011
how can i make a "wait" function that pauses for the time parameter that it would have. It would be in miliseconds. Something with GetTickCount() ... PLEASE REPLY ASAP!
Re: wait function (urgent) -
Donya - 10.05.2011
pawn Код:
stock Wait(time)
{
new stamp = tickcount();
while (tickcount() - stamp < time){}
return 1;
}
Wait(1000); // 1 second
Re: wait function (urgent) -
sciman001 - 10.05.2011
thx.