timer problem
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
forward GateTimer(playerid);
public GateTimer(playerid)
{
    if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1415.2137,2773.7051,14.8135))
    {
        SendClientMessage(playerid, COLOR_RED, "Spawn protection countdown has started. You have 10 seconds.");
        SetTimerEx("AntiSpawnkill",10000,0,"i",playerid);
        KillTimer(gatetimer[playerid]);
    }
    return 1;
}
Thank you! I guess I have to learn more about looping! But can you tell me why does the first timer call GateTimer() twice now?
Reply


Messages In This Thread
timer problem - by exclide1 - 27.06.2013, 23:53
Re: timer problem - by Jefff - 28.06.2013, 00:03
Re: timer problem - by exclide1 - 28.06.2013, 00:13
Re: timer problem - by Jefff - 28.06.2013, 00:17
Re: timer problem - by exclide1 - 28.06.2013, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)