30.06.2011, 05:46
(
Последний раз редактировалось clavador; 30.06.2011 в 08:03.
)
Hi.
I wanted to ask if there's a problem (or maybe is that way) with PVar's and SetTImerEx, because I create a Pvar like:
But the timer never starts.
Are PVars and timers incompatible or am I doing something wrong?
EDIT:
I think I've found the error. Im creating the PVar calling a function that is in another script.
How can I initiate a timer inside another Filterscript?
The solution im using now is calling a remote function from the filterscript to the gamemode and this function creating the timer, like:
Inside Filterscript:
Inside Gamemode:
I wanted to ask if there's a problem (or maybe is that way) with PVar's and SetTImerEx, because I create a Pvar like:
pawn Код:
SetPVarInt(playerid,"timer1",SetTimerEx("TIMER",1000,true,"i",playerid));
Are PVars and timers incompatible or am I doing something wrong?
EDIT:
I think I've found the error. Im creating the PVar calling a function that is in another script.
How can I initiate a timer inside another Filterscript?
The solution im using now is calling a remote function from the filterscript to the gamemode and this function creating the timer, like:
Inside Filterscript:
pawn Код:
CallRemoteFunction("function","i",playerid);
pawn Код:
forward function(playerid);
public function(playerid)
{
timer[playerid] = SetTimerEx("timer",1000,true,"i",playerid);
return 1;
}