26.05.2014, 15:01
The problem comes from "SetTimer".
If a function hasn't any parameter (so anything between the () ), you use SetTimer.
But the function robtimer has a parameter or more than one, you must use SetTimerEx.
There are two additionnal parameters in SetTimerEx : the parameter format (you must put it between quotes, just like sscanf) and the parameters theirselves.
In your case, it should be
Use i or d for integers, f for floats, or b for a boolean.
Using strings and array isn't possible yet with SetTimer, but if you use y_timers, it becomes possible.
If a function hasn't any parameter (so anything between the () ), you use SetTimer.
But the function robtimer has a parameter or more than one, you must use SetTimerEx.
There are two additionnal parameters in SetTimerEx : the parameter format (you must put it between quotes, just like sscanf) and the parameters theirselves.
In your case, it should be
PHP код:
SetTimerEx("robtimer", 300000, false, "i", playerid);
Using strings and array isn't possible yet with SetTimer, but if you use y_timers, it becomes possible.