Detect Trailer id?
#2

Replace TrailerID[MAX_PLAYERS] to PlayerMissionID[MAX_PLAYERS] and set on start missionid to player array

pawn Код:
PlayerMissionID[playerid] = missionid_here;
then
pawn Код:
if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) == PetrolTruckerLocations[PlayerMissionID[playerid]][TrailID])
and you don't need these xd
pawn Код:
new     MissionText[512][MAX_PLAYERS], Float:unx[MAX_PLAYERS], Float:uny[MAX_PLAYERS], Float:unz[MAX_PLAYERS], TrailerID[MAX_PLAYERS], Payment[MAX_PLAYERS], MissionStatus[MAX_PLAYERS];
only
pawn Код:
new PlayerMissionID[MAX_PLAYERS];
because everything is here
pawn Код:
new PetrolTruckerLocations[][PetrolTruckerLocationsEnum]
text,x,y,z,pay..
Reply


Messages In This Thread
Detect Trailer id? - by DaZZleViirus - 01.04.2014, 12:33
Re: Detect Trailer id? - by Jefff - 01.04.2014, 13:36
Re: Detect Trailer id? - by DaZZleViirus - 01.04.2014, 13:59
Re: Detect Trailer id? - by DaZZleViirus - 01.04.2014, 14:48
Re: Detect Trailer id? - by Jefff - 01.04.2014, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)