Refuel cmd need help !
#1

pawn Code:
stock StopRefueling(playerid)
{
    GivePlayerCash(playerid, -RefuelingVehiclePrice[playerid]);
    SendFormattedMessage(playerid, COLOR_WHITE,"Your vehicle's tank has been refilled for $%d.", RefuelingVehiclePrice[playerid]);

    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;
}
Problem is that when i refuel my vehicle it repeats saying ''Your vehicle's tank has been refilled for (the money)''
Whats wrong here ?? when i restart server it stops sayin that
Reply


Messages In This Thread
Refuel cmd need help ! - by hulitubolies - 20.07.2012, 11:16
Re: Refuel cmd need help ! - by hulitubolies - 20.07.2012, 11:22
Re: Refuel cmd need help ! - by Cypress - 20.07.2012, 11:34
Re: Refuel cmd need help ! - by jeremy8810 - 20.07.2012, 11:44
Re: Refuel cmd need help ! - by hulitubolies - 20.07.2012, 12:45
Re: Refuel cmd need help ! - by hulitubolies - 20.07.2012, 21:03
Re: Refuel cmd need help ! - by Cypress - 21.07.2012, 11:04
Re: Refuel cmd need help ! - by hulitubolies - 21.07.2012, 20:59
Re: Refuel cmd need help ! - by Youice - 21.07.2012, 21:22
Re: Refuel cmd need help ! - by Dare Devil..... - 21.07.2012, 21:54

Forum Jump:


Users browsing this thread: 1 Guest(s)