KillTimer problem in Fuel System
#5

Still dont work

Код HTML:
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);
		}
	}
    if(VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0)
    {
      	VehicleFuel[GetPlayerVehicleID(playerid)] = 100.0;
     	KillTimer(RefuelingVehicleTimer[playerid]);
	}
	RefuelingVehicle[playerid] = 0;
 	RefuelingVehiclePrice[playerid] = 0;
	return true;
}
Reply


Messages In This Thread
KillTimer problem in Fuel System - by Kenway - 20.08.2012, 15:44
Re: KillTimer problem in Fuel System - by [MWR]Blood - 20.08.2012, 15:54
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 15:55
Re: KillTimer problem in Fuel System - by [MWR]Blood - 20.08.2012, 15:58
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 16:13
Re: KillTimer problem in Fuel System - by [MWR]Blood - 20.08.2012, 18:04
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 18:34
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 23:59
Re: KillTimer problem in Fuel System - by Kenway - 21.08.2012, 18:31
Re: KillTimer problem in Fuel System - by Misiur - 21.08.2012, 19:02

Forum Jump:


Users browsing this thread: 3 Guest(s)