Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
How would i start a timer for the amount of time the person typed in after the command?
So like: SetTimerEx("Bla", params, 0, "i", playerid);
Like that, How would i do it correctly?
Posts: 546
Threads: 44
Joined: Jan 2010
Reputation:
0
Do you want it in minutes or seconds, because timers use milliseconds. If you want seconds, multiply the input by 1000, if you want minutes, multiply by 60000. Remember to use strval for params.
Posts: 546
Threads: 44
Joined: Jan 2010
Reputation:
0
new time = strval(params);
SetTimerEx("bla", time, 0, "i", playerid);
Should work.
Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
I dont use strval cause i cant the way im doing it but it sitll works the same,
Anyway thats not working - btw i using sscanf
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
Maybe showing the code, so we can see what you're doing wrong ?
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
You're trying to unjail 'playerid' (which typed the command) instead of 'id' (which got jailed)