Fuel 0 bugg player dont remove from vehicle :S
#1

Hi, my fuel system when my fuel is on fuel:0 it don't remove my from the vehicle!? can you help me? ? :S

Код:
public OnVehicleFuelEmpty(playerid, vehicleid)
{
  if(VehicleFuel[vehicleid] <= 0)
  {
	  RemovePlayerFromVehicleEx(playerid);
	  TogglePlayerControllable(playerid, true);
	  SetTimerEx("SendVehicleToRespawn", 3500, false, "d", vehicleid);
  }
	return 1;
}
Reply
#2

shouldn't there be somehting like:
GetPlayerFuel[playerid] ?
Reply
#3

No, player's don't have fuel, vehicles do.


Reply
#4

Код:
 public OnVehicleFuelEmpty(playerid, vehicleid)
{
  if(VehicleFuel[vehicleid] = 0)
  {
	  RemovePlayerFromVehicleEx(playerid);
	  TogglePlayerControllable(playerid, true);
	  SendVehicleToRespawn (vehicleid, true);
  }
	return 1;
}
could be something like this just took a shot in the dark
why u needed timer to hold vehicle there

or u may have it right just try removing the < from the less than 0
if(VehicleFuel[vehicleid] = 0
Reply
#5

pawn Код:
for (new i = 0; i < MAX_PLAYERS; i++)
{
//Code here
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)