callback help (public robbtimer) (bugging)
#7

Quote:
Originally Posted by S4t3K
Посмотреть сообщение
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.
Greetings!

Thanks for your reply!


Can you please explain why there "i" at SetTimerEx?

What should i put there? Thanks!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)