KillTimer is not working
#2

why did you put the Kill Timer in loop?

try this:

Код:
stock StopRefueling(playerid)
{
	GivePlayerCash(playerid, -RefuelingVehiclePrice[playerid]);

	new string[128];
	format(string, sizeof(string), "Your vehicle's tank has been refilled for $%d.", RefuelingVehiclePrice[playerid]);
	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);
		}
			
	}
        KillTimer(RefuelingVehicleTimer[playerid]);
        RefuelingVehicle[playerid] = 0; 
        RefuelingVehiclePrice[playerid] = 0;
	return true;
}
Reply


Messages In This Thread
KillTimer is not working - by Kenway - 19.08.2012, 12:20
Re: KillTimer is not working - by avivelkayam - 19.08.2012, 12:30
Re: KillTimer is not working - by Kenway - 19.08.2012, 12:37
Re: KillTimer is not working - by Kenway - 19.08.2012, 18:07
Re: KillTimer is not working - by MadeMan - 19.08.2012, 19:05
Re: KillTimer is not working - by Kenway - 19.08.2012, 19:21
Re: KillTimer is not working - by Kenway - 20.08.2012, 08:00

Forum Jump:


Users browsing this thread: 1 Guest(s)