Hay,
also ich bräuchte mal hilfe von euch
Dieser error: error 033: array must be indexed (variable "-unknown-")
Der code:
dcmd_delveh(playerid, params[])
{
SpielerInfo[playerid][pAdmin] = mysql_GetInt("accounts","Admin","Name", SpielerInfo[playerid][pName]);
if(SpielerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin oder dein AdminRang ist zu niedrig für diesen Befehl!");
}
else
{
new vehID;
if(sscanf(params,"u",vehID)) return SendClientMessage(playerid,COLOR_RED,"/delveh [this/id]");
if(vehID == "this")//Zeile 365
{
DestroyVehicle(GetPlayerVehicleID(playerid));
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"Vehicle: %d , Name: %s , Status: Gelöscht! ", GetPlayerVehicleID(playerid), playername);
SendClientMessage(playerid,COLOR_GREY,string);
return 1;
}
else
{
DestroyVehicle(vehID);
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"Vehicle: %d , Name: %s , Status: Gelöscht! ", vehID, playername);
SendClientMessage(playerid,COLOR_GREY,string);
return 1;
}
}
return 1;
}
MFG Mesow