stop refueling loop problem
#3

Keeps doing the same...when adding the killtimer you gave me, should i remove the kill timer in here?

pawn Код:
stock StopRefueling(playerid)
{
    GivePlayerCash(playerid, -100);
    SendFormattedMessage(playerid, COLOR_WHITE,"Your vehicle's tank has been refilled for $100.");

    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] = 6000); // should i remove this???!!!
    return true;
}
Reply


Messages In This Thread
stop refueling loop problem - by biogenic1 - 15.09.2011, 17:52
Re: stop refueling loop problem - by PrawkC - 15.09.2011, 18:08
Respuesta: stop refueling loop problem - by biogenic1 - 15.09.2011, 18:52
Respuesta: stop refueling loop problem - by biogenic1 - 15.09.2011, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)