KillTimer bug.
#5

Quote:
Originally Posted by iZN
Посмотреть сообщение
Why don't you just put that to OnPlayerUpdate? Or to a global timer.

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInAnyVehicle(playerid)) // if the player is in vehicle?
    {
        // Show them speed information
        new vid = GetPlayerVehicleID(playerid);
        CarInfo[vid][Metres] += (vitesse[playerid]*10)/36;
        if(CarInfo[vid][Metres] > 999)
        {
            CarInfo[vid][Kilometres] += 1;
            CarInfo[vid][Metres] = 0;
        }
        format(string, sizeof(string), "M: %d - KM: %d", CarInfo[vid][Metres], CarInfo[vid][Kilometres]);
        SendClientMessage(playerid, -1, string);
    }
    return true;
}
OnPlayerUpdate would use more resources than if I use a timer and then I kill right?
Reply


Messages In This Thread
KillTimer bug. - by TheSy - 29.04.2014, 19:31
AW: KillTimer bug. - by Macronix - 29.04.2014, 20:00
Re : KillTimer bug. - by TheSy - 29.04.2014, 20:29
Re: KillTimer bug. - by iZN - 29.04.2014, 20:35
Re : Re: KillTimer bug. - by TheSy - 29.04.2014, 20:40
AW: KillTimer bug. - by Macronix - 29.04.2014, 20:41
Re: KillTimer bug. - by Luis- - 29.04.2014, 20:42
Re: Re : Re: KillTimer bug. - by iZN - 29.04.2014, 20:45
Re: KillTimer bug. - by Pottus - 29.04.2014, 20:48
Re : KillTimer bug. - by TheSy - 29.04.2014, 21:05

Forum Jump:


Users browsing this thread: 8 Guest(s)