21.04.2011, 15:44
Where are you getting the playerid value from in the function? It's never passed there, I assume you're trying to do something like this:
Doesn't that make more sense? You're using SetTimerEx to the pass the value of playerid to the function, which then uses the value of playerid in the TogglePlayerControllable function.
pawn Код:
SetTimerEx("ptimer", 1000, 0, "i", playerid);
public ptimer(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}