Trucker Job Issue
#1

Код:
		if(IsAFuelTruck(newcar))//ftjob
		{
		    if(PlayerInfo[playerid][pJob] == 16)
			{
				format(string, sizeof(string), "Fuel: %d,000/%d,000 Gallons", PlayerHaul[newcar][pFuelLoad],PlayerHaul[newcar][pCapasity]);
				SendClientMessage(playerid, COLOR_YELLOW, string);
				SendClientMessage(playerid, COLOR_WHITE, "INFO: You can deliver Fuel to Los Santos Trucking Docks.");
				SendClientMessage(playerid, COLOR_WHITE, "INFO: Commands are /buyfuel [amount] /sellfuel");
			}
			else
			{
   				SendClientMessage(playerid, COLOR_WHITE, "  You are not a Truck Driver.");
			    RemovePlayerFromVehicle(playerid);
			    TogglePlayerControllable(playerid, 1);
			}
		}
Код:
enum pHaul
{
	pCapasity,
	pLoad,
	pFuelLoad,//ftjob
};

new PlayerHaul[][pHaul];
Ok the problem is when i enter a 'fueltruck' it says something like

Fuel: -12391782591725,000/20,000 Gallons

Its suppose to be saying when I enter a fueltruck 0/20,000

Why is it saying this weird number ?
Reply


Messages In This Thread
Trucker Job Issue - by EdeniaGaming - 11.07.2011, 02:58
Re: Trucker Job Issue - by dowster - 11.07.2011, 05:30
Re: Trucker Job Issue - by EdeniaGaming - 11.07.2011, 16:43
Re: Trucker Job Issue - by Adil - 11.07.2011, 16:50
Re: Trucker Job Issue - by EdeniaGaming - 11.07.2011, 16:55
Re: Trucker Job Issue - by Toreno - 11.07.2011, 16:59
Re: Trucker Job Issue - by EdeniaGaming - 11.07.2011, 17:04
Re: Trucker Job Issue - by EdeniaGaming - 11.07.2011, 20:05
Re: Trucker Job Issue - by beauhobbs - 11.07.2011, 20:39
Re: Trucker Job Issue - by dowster - 12.07.2011, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)