Hallo ich hab mir mal einen /veh und /delall befehl besorgt denoch bekomme ich Leider 1 Error
D:\Eigene Dateien\Robert\Stunt\gamemodes\Stunt.pwn(227) : error 017: undefined symbol "supportcarf"
ocmd:delall(playerid,params[])
{
if(!IsPlayerAdmin(playerid))
{
DestroyVehicle(supportcarf); // Error Zeile
}
return 1;
}
ocmd:veh(playerid,params[])
{
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,ROT,"S.Y.S.T.E.M: Du bist kein Admin / Rang 4.");
{
new Float:x, Float:y, Float:z;
new Text3D:supportveh[MAX_VEHICLES];
new c1,c2,vid;
if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,ROT,"S.Y.S.T.E.M: /veh [CarID] [Farbe1] [Farbe2]");
{
if(vid<402||vid>603)return SendClientMessage(playerid,ROT,"Ungultige Fahrzeug-ID.");
{
GetPlayerPos(playerid,x,y,z);
new car,supportcarf;
supportcarf = SetVehicleNumberPlate(car = CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Support");
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,ROT,"Du hast ein Support Fahrzeug gespawnt.");
supportveh[car] = Create3DTextLabel("Support Fahrzeug", BLAU,0.0,0.0,0.0,30.0,0,1);
Attach3DTextLabelToVehicle(supportveh[car],car,0.0,0.0,2.0);
return 1;
}
}
}
}