Help with the timer.
#6

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:

pawn Код:
SetTimerEx("ptimer", 1000, 0, "i", playerid);

public ptimer(playerid)
{
    TogglePlayerControllable(playerid, true);
    return 1;
}
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.
Reply


Messages In This Thread
Help with the timer. - by GangsTa_ - 21.04.2011, 14:58
Re: Help with the timer. - by Sergei - 21.04.2011, 15:00
Re: Help with the timer. - by GangsTa_ - 21.04.2011, 15:03
Re: Help with the timer. - by GangsTa_ - 21.04.2011, 15:42
Re: Help with the timer. - by NotoriousMOB - 21.04.2011, 15:42
Re: Help with the timer. - by JaTochNietDan - 21.04.2011, 15:44
Re: Help with the timer. - by Gertin - 21.04.2011, 17:52
Re: Help with the timer. - by Sergei - 21.04.2011, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)