Formula Issue
#5

pawn Код:
C:\Documents and Settings\Nmader\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(19021) : warning 213: tag mismatch
C:\Documents and Settings\Nmader\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(19040) : warning 213: tag mismatch
pawn Код:
command(fuel, playerid, vehicleid, params[])
{
    new fuelamount;
    if(sscanf(params, "d", fuelamount))
    {
        SendClientMessage(playerid, ERROR, "SYNTAX: /fuel [amount]");
    }
    else
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new neededfuel = (MAX_FUEL - Vehicles[vehicleid][Fuel]); //line 19021
            if(fuelamount > neededfuel)
            {
                SendClientMessage(playerid, ERROR, "Your vehicle cannot hold that much fuel!");
            }
            else
            {
                new calculation = (fuelamount * REFUEL_COST) / 100;
                if(Player[playerid][Money] < calculation)
                {
                    SendClientMessage(playerid, ERROR, "You do not have enough money to refuel your vehicle.");
                }
                else
                {
                    new calculation2 = (Player[playerid][Money] - calculation);
                    new timertime = (fuelamount * 1000);
                    SetPlayerMoney(playerid, calculation2);
                    TogglePlayerControllable(playerid, false);
                    SetTimerEx("Fueling", timertime, false, "i", playerid);
                    new ifuel = (Vehicles[vehicleid][Fuel] + fuelamount); //line 19040
                    Vehicles[vehicleid][Fuel] = ifuel;
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Formula Issue - by nmader - 08.09.2012, 16:58
AW: Formula Issue - by Nero_3D - 08.09.2012, 17:31
Re: Formula Issue - by nmader - 08.09.2012, 17:57
AW: Formula Issue - by Nero_3D - 08.09.2012, 17:59
Re: Formula Issue - by nmader - 08.09.2012, 18:03
AW: Formula Issue - by Nero_3D - 08.09.2012, 20:02
Re: Formula Issue - by SuperViper - 08.09.2012, 20:04

Forum Jump:


Users browsing this thread: 1 Guest(s)