Timer - 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: Timer (
/showthread.php?tid=227980)
Timer -
Anteino - 18.02.2011
Hi, so this is the code to start a timer:
pawn Код:
SetTimer("message",1000,false);
But what if my public message() contains parameters like: message(playerid). Then
pawn Код:
SetTimer("message(playerid)",1000,false);
will not work!
How to fix this?
Re: Timer -
xRyder - 18.02.2011
https://sampwiki.blast.hk/wiki/SetTimerEx
Re: Timer -
Mean - 18.02.2011
pawn Код:
SetTimerEx( "message",1000,false, "i", playerid );
pawn Код:
public message( playerid )
Re: Timer -
Anteino - 19.02.2011
Yes, thank you that worked!