function "OnPlayerExitVehicle" is not implemented - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: function "OnPlayerExitVehicle" is not implemented (
/showthread.php?tid=229325)
function "OnPlayerExitVehicle" is not implemented -
[MKD]Max - 21.02.2011
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;
}
Re: function "OnPlayerExitVehicle" is not implemented -
JaTochNietDan - 21.02.2011
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.