Hey leute könnt ihr mir mal helfen ?
Errorzeile : error 033: array must be indexed (variable "Bombenid")
Pwn:
public BOOM(playerid)
{
SetVehicleHealth(Bombenid[playerid],0);
new Float:X,Float:Y,Float:Z;
GetVehiclePos(Bombenid[playerid],X,Y,Z);
CreateExplosion(X,Y,Z,6,100);
CreateExplosion(X+2,Y+2,Z,6,100);
CreateExplosion(X-2,Y-2,Z,6,100);
CreateExplosion(X,Y,Z+2,6,100);
CreateExplosion(X,Y,Z-2,6,100);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,Bombenid[playerid]))
{
SetPlayerHealth(i,0);
}
}
Bombe[Bombenid[playerid]] = 0;
Bombenid = 0; //Errorzeile
return 1;
}