callback help (public robbtimer) (bugging)
#6

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

PHP код:

SetTimerEx
("robtimer"300000false"i"playerid); 
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)