[Ajuda] erro nao sei porque
#3

Pra que essas 2 chaves depois do loop se elas nгo tem nenhuma funзгo
pawn Код:
public FuelTimer()
{
    //===========================================[TAKING FUEL FROM UNOCCUPIED CARS WITH ENGINE ON]======================================
    for(new c=0;c<MAX_VEHICLES;c++)
    {
        if(Fuel[c] >= 1)
        {
            Fuel[c]--;
        }
    }
    //=======================================================================================================================
    new string[60];
    new vehicle = GetPlayerVehicleID(i);
    if(!OutOfFuel[i])
    for(new i; i != GetMaxPlayers(); ++i)
    {
        if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
        {
            format(string,sizeof(string),"Combustivel:%d",Fuel[vehicle]);
            TextDrawSetString(Textdraw1[i],string);
        }
    }
    return 1;
}
Nгo seria assim?
Reply


Messages In This Thread
erro nao sei porque - by iTzDemon - 07.09.2012, 17:19
Re: erro nao sei porque - by .FuneraL. - 07.09.2012, 17:23
Re: erro nao sei porque - by Tony_Rodrigues - 07.09.2012, 17:28
Re: erro nao sei porque - by iTzDemon - 07.09.2012, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)