29.08.2009, 12:29
I try type command, for when the player is in vehicle, he can destroit it with /vdestroy
but is funcion for vip... i dont know why give this error, the commad is
This is the error.
but is funcion for vip... i dont know why give this error, the commad is
Код:
dcmd_vdestroy(playerid,params[])
{
if(PlayerData[playerid][VIP] == 1)
{
#pragma unused params
new vipcar;
IsPlayerInAnyVehicle(playerid);
vipcar = GetVehicleModel(vehicleid);
DestroyVehicle(vipcar);
SendClientMessage(playerid, COLOUR_YELLOW, "Your vehicle is destroy.");
return true;
}
else return false;
}
Код:
C:\Documents and Settings\ERO\Escritorio\Mi Servidor SAMP Pruebas Privadas\Server Pruebas Privado (Hosting)\gamemodes\rtscript.pwn(1575) : error 017: undefined symbol "vehicleid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.

