function "OnPlayerExitVehicle" is not implemented
#1

hello guys please help me with this error i have do like this code but look what i got

Код:
Errors:
D:\Documents and Settings\MrThift1\Desktop\Lsrcr\gamemodes\Lsrcr.pwn(16811) : error 029: invalid expression, assumed zero
D:\Documents and Settings\MrThift1\Desktop\Lsrcr\gamemodes\Lsrcr.pwn(16811) : error 004: function "OnPlayerExitVehicle" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
	if(!IsPlayerInVehicle(playerid,415) && gTeam[playerid] == TEAM_UNDERCOVER)
	{
 		SetPlayerColor(playerid,COLOR_BLUE);
	}
	}
	return 1;
}
Reply
#2

You have an additional bracket there.

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(!IsPlayerInVehicle(playerid,415) && gTeam[playerid] == TEAM_UNDERCOVER)
    {
        SetPlayerColor(playerid,COLOR_BLUE);
    }
    return 1;
}
Also it's worth noting that IsPlayerInVehicle checks if the player is in vehicleid 415, not if he is in a vehicle that has the model ID of 415.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)