21.06.2011, 20:31
Use SetTimerEx instead of SetTimer. When I was a beginner in PAWN I also had this error.
SetTimerEx is used for call a function with arguments.
Usage:
Example:
How to use "i", "s", and "f":
i = integer: For Example class IDs, like players, vehicles and objects.
s = string: For example messages, filenames etc...
f = float: For example coordinates
Example:
SetTimerEx is used for call a function with arguments.
Usage:
pawn Код:
SetTimerEx(FuncName[], Interval, Repeating, const format, Float{.._});
pawn Код:
SetTimerEx("YourFunc", 10000, false, "i", playerid);
i = integer: For Example class IDs, like players, vehicles and objects.
s = string: For example messages, filenames etc...
f = float: For example coordinates
Example:
pawn Код:
SetTimerEx("YourFunc", 10000, false, "iiifffs", playerid, objectid, vehicleid, x, y, z, "Hello");