CMD:gv(playerid, params[]) { new id; if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "Error: You are not logged in!"); if(PlayerAcc[playerid][Admin] >= 3) { if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Gv: /gv (id)"); if(id == INVALID_PLAYER_ID) return ErrorMessages(playerid, 2); if(id == playerid) return ErrorMessages(playerid, 4); if(IsPlayerInVehicle(id)) if(GetPlayerState(playerid) == 2) { PutPlayerInVehicle(playerid, CarId[id], 1); } } return 1; }
CMD:gv(playerid, params[])
{
new id;
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "Error: You are not logged in!");
if(PlayerAcc[playerid][Admin] >= 3)
{
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Gv: /gv (id)");
if(id == INVALID_PLAYER_ID) return ErrorMessages(playerid, 2);
if(id == playerid) return ErrorMessages(playerid, 4);
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if(id == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_RED, "Gv: That vehicle doesn't exist");
PutPlayerInVehicle(playerid, id, 0);
}
else return SendClientMessage(playerid, COLOR_GREY, "Gv: You must be on foot");
}
return 1;
}
error 017: undefined symbol "IsValidVehicle" |
if(!IsValidVehicle(id)) return SendClientMessage(playerid, COLOR_RED, "Gipv: That vehicle doesn't exist"); |
native IsValidVehicle(vehicleid);
CMD:gv(playerid, params[])
{
new id;
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "Error: You are not logged in!");
if(PlayerAcc[playerid][Admin] >= 3)
{
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Gv: /gv (id)");
if(id == INVALID_PLAYER_ID) return ErrorMessages(playerid, 2);
if(id == playerid) return ErrorMessages(playerid, 4);
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if(id == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_RED, "Gv: That vehicle doesn't exist");
PutPlayerInVehicle(playerid, id, 0);
}
else return SendClientMessage(playerid, COLOR_GREY, "Gv: You must be on foot");
}
return 1;
}
CMD:gv(playerid, params[])
{
if(!PlayerAcc[playerid][Log]) return SendClientMessage(playerid, COLOR_RED, "Error: You are not logged in!");
if(PlayerAcc[playerid][Admin] >= 3)
{
new id;
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Gv: /gv (id)");
if(id == INVALID_PLAYER_ID) return ErrorMessages(playerid, 2);
if(id == playerid) return ErrorMessages(playerid, 4);
if(GetPlayerState(id) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "The player is not a driver");
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, COLOR_GREY, "You must be on foot");
PutPlayerInVehicle(playerid, GetPlayerVehicleID(id), 1);
}
return 1;
}