OnPlayerEnterVehicle not Recognised
#3

I've changed it so that it has the callback vehid. However, this has made no difference. New code below - suggestions?

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
 vehid = GetPlayerVehicleID(playerid);
 if (vehid == 403)
 {
  if (job[playerid] != 1)
  RemovePlayerFromVehicle(playerid);
  SendClientMessage(playerid,0xAA3333AA,"You do not have the trucker job");
 }
 vehid = GetPlayerVehicleID(playerid);
 if (vehid == 514)
 {
  if (job[playerid] != 1)
  RemovePlayerFromVehicle(playerid);
  SendClientMessage(playerid,0xAA3333AA,"You do not have the trucker job");
 }
 vehid = GetPlayerVehicleID(playerid);
 if (vehid == 448)
 {
  if (job[playerid] != 2)
  RemovePlayerFromVehicle(playerid);
  SendClientMessage(playerid,0xAA3333AA,"You do not have the pizza-boy job");
 }
 vehid = GetPlayerVehicleID(playerid);
 if (vehid == 408)
 {
  if (job[playerid] != 3)
  RemovePlayerFromVehicle(playerid);
  SendClientMessage(playerid,0xAA3333AA,"You do not have the trashmaster job");
 }
 return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle not Recognised - by Jonesy96 - 05.02.2013, 23:18
Respuesta: OnPlayerEnterVehicle not Recognised - by ThePhenix - 05.02.2013, 23:30
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 05.02.2013, 23:34
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 06.02.2013, 00:39
Re: OnPlayerEnterVehicle not Recognised - by Infamous - 06.02.2013, 00:55
Re: OnPlayerEnterVehicle not Recognised - by AphexCCFC - 06.02.2013, 01:06
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 06.02.2013, 01:35
Re: OnPlayerEnterVehicle not Recognised - by AphexCCFC - 06.02.2013, 01:41
Re: OnPlayerEnterVehicle not Recognised - by mastermax7777 - 06.02.2013, 03:14
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 06.02.2013, 06:29

Forum Jump:


Users browsing this thread: 1 Guest(s)