Timer Question
#1

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.
Reply
#2

strval(inputtext) ?
Reply
#3

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)