Help please -Solved By Don Correlli-
#1

The message : je stinkt should only shows when you aren;t in a NRG-500
But it just aaaalways show.

My code:
Код:
case DRIVELIC_CHECKPOINT1:
	    {
        if(GetVehicleModel(playerid) == 522)
				{
	      SendClientMessage(playerid,orange,"Nice driving");
	      SetPlayerRaceCheckpoint(playerid, 0, 1669.2777,-1734.5085,12.9315, -2007.3123, -73.4380, 34.8973, 4.0);
	      gPlayerDrivingCheckpoints[playerid] = DRIVELIC_CHECKPOINT2;
			}else{SendClientMessage(playerid,red,"je stinkt");
			}
			}
PLease please help
Reply
#2

GetVehicleModel function requires a vehicleid parameter, not playerid.
Reply
#3

Код:
case DRIVELIC_CHECKPOINT1:
	    {
        if(GetVehicleModel(vehicleid) == 522)
				{
	      SendClientMessage(playerid,orange,"Nice driving");
	      SetPlayerRaceCheckpoint(playerid, 0, 1669.2777,-1734.5085,12.9315, -2007.3123, -73.4380, 34.8973, 4.0);
	      gPlayerDrivingCheckpoints[playerid] = DRIVELIC_CHECKPOINT2;
			}else{SendClientMessage(playerid,red,"je stinkt");
			}
			}
That gives an error with : Undefined symbol vehicleid? Please fix
Reply
#4

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522)
{
  // your code.
}
Reply
#5

Thanks man. It works. I won't forget how to do this :P
Your credits in topic name
Reply
#6

You're welcome.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)