Warning help
#8

This should be fixed
pawn Код:
stock StopRefueling(playerid)
{
    new string [256];
    GivePlayerCash(playerid, -RefuelingVehiclePrice[playerid]);
    format(string,sizeof(string),"Your vehicle's tank has been refilled for $%d.", RefuelingVehiclePrice[playerid]); // Fixed string word
    SendClientMessageEx(playerid, COLOR_WHITE,string);

    new mypoint = -1;
    for (new i=0; i<MAX_POINTS; i++)
    {
        if(strcmp(Points[i][Name], "Fossil Fuel Company", true) == 0)
        {
            mypoint = i;
        }
    }
    for(new i = 0; i < sizeof(FamilyInfo); i++)
    {
        if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
        {
            FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(RefuelingVehiclePrice[playerid]/10);
        }
    }

    RefuelingVehicle[playerid] = 0; RefuelingVehiclePrice[playerid] = 0; KillTimer(RefuelingVehicleTimer[playerid]);
    return true;
}
Reply


Messages In This Thread
Warning help - by Shazwan - 05.07.2013, 09:27
Re: Warning help - by Xoomer - 05.07.2013, 09:30
Re: Warning help - by Shazwan - 05.07.2013, 09:34
Re: Warning help - by Xoomer - 05.07.2013, 09:52
Re: Warning help - by Shazwan - 05.07.2013, 16:30
Re: Warning help - by Necip - 05.07.2013, 16:32
[No subject] - by Shazwan - 05.07.2013, 16:33
Re: Warning help - by ToiletDuck - 05.07.2013, 16:33
Re: Warning help - by Necip - 05.07.2013, 16:35
Re: Warning help - by ToiletDuck - 05.07.2013, 16:38

Forum Jump:


Users browsing this thread: 2 Guest(s)