04.05.2014, 16:33
I want to add a send client message if the player is not in the vehicle what can i add
Error:
Line:
PHP код:
CMD:removerplayerv(playerid, params[])
{
new targetid;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_DARKRED,"[ERRO:] You are not admin!");
if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, COLOR_ADMINCMD,"[INFO:] /removerplayerv [PlayerID]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_NICERED,"[ERROR:] Player is not connected!");
if(!IsInVehicle(targetid)) return SendClientMessage(playerid, COLOR_NICERED,"[ERROR:] The player is not in vehicle!");
RemovePlayerFromVehicle(targetid);
return 1;
}
PHP код:
C:\Users\Bruno\Desktop\CoD-Rivals\CoD-Rivals\gamemodes\CoD-R.pwn(201) : error 017: undefined symbol "IsInVehicle"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.