player timer does not stop [ SOLVED ]
#2

PHP код:
public PizzaDeliveryTimer(playerid)
{
    
pizzaDeliveryTimeLeft[playerid] --;
    new 
string[146], vehicleid GetPlayerVehicleID(playerid);
    if(
GetVehicleModel(vehicleid) == 448)
    {
        if(
pizzaDeliveryTimeLeft[playerid] > 10)
        {
            
format(string256"~y~%d"pizzaDeliveryTimeLeft[playerid]);
        }
        if(
pizzaDeliveryTimeLeft[playerid] <= 10)
        {
            
format(string256"~r~%d"pizzaDeliveryTimeLeft[playerid]);
        }
        
PlayerTextDrawSetString(playeridpizzaTextDraw7[playerid], string);
        
        if(
pizzaDeliveryTimeLeft[playerid] == 0)
        {
            
PlayerTextDrawHide(playeridpizzaTextDraw5[playerid]);
            
PlayerTextDrawHide(playeridpizzaTextDraw7[playerid]);
            
KillTimer(pizzaDeliveryTimer[playerid]);
        }
    }

Reply


Messages In This Thread
player timer does not stop [ SOLVED ] - by Gusteakas - 26.11.2016, 18:24
Re: player timer does not stop - by IceBilizard - 26.11.2016, 18:31
Re: player timer does not stop - by Gusteakas - 26.11.2016, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)