04.01.2014, 07:47
Hello, I've been making a command to destroy the vehicle that the player is in for
my server, but I keep getting the problem where the command doesn't actually work, and sends the
"You need to be in a vehicle" text and then unknown command text, So i changed it to the new
command below and i keep getting the error: error 017: undefined symbol "GetPlayerVehicledID"
my server, but I keep getting the problem where the command doesn't actually work, and sends the
"You need to be in a vehicle" text and then unknown command text, So i changed it to the new
command below and i keep getting the error: error 017: undefined symbol "GetPlayerVehicledID"
Код:
CMD:dveh(playerid, params[])
{
new
vehicleid = GetPlayerVehicledID(playerid),
string[128];
if(IsPlayerInVehicle(playerid, vehicleid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
DestroyVehicle(vehicleid);
format(string, sizeof(string), "The %s has been destroyed.", VehicleName(vehicleid));
SendClientMessage(playerid, YELLOW, string);
}
}
else(SendClientMessage(playerid, RED, "You need to be in a vehicle to destroy it."));
}

