Timer Question - 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 Question (
/showthread.php?tid=185260)
Timer Question -
[NWA]Hannes - 23.10.2010
I have a dialog mute command, and inputtext is the duration, but i get an error by this:
pawn Код:
SetTimerEx("Unmute", inputtext, false, "i", playerid);
Please help.
Re: Timer Question - [L3th4l] - 23.10.2010
strval(inputtext) ?
Re: Timer Question -
Miguel - 24.10.2010
The second parameter of
SetTimerEx is the time in milliseconds, which is an integer. "inputtext" is a string and you need to convert it to an integer using
strval.
pawn Код:
SetTimerEx("Unmute", strval(inputtext), false, "i", playerid);