Jo ich hab ein Problem bei /supcar
C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(18874) : error 028: invalid subscript (not an array or too many subscripts): "SupMobil"
C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(18874) : warning 215: expression has no effect
C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(18874) : error 001: expected token: ";", but found "]"
C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(18874) : error 029: invalid expression, assumed zero
C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(18874) : fatal error 107: too many error messages on one line
if (strcmp(cmd, "/supmobil", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pSupporter] >= 1)
{
if(PlayerInfo[playerid][pJailed] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "* Du darfst im Knast kein Supporterfahrzeug spawnen");
}
else if(GetPlayerInterior(playerid) > 0)
{
SendClientMessage(playerid, COLOR_GREY, "* Guter Versuch");
}
if(HatSupmobil[playerid]==0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
SupMobil[playerid] = CreateVehicle(583, x+1,y+1,z+1,0.0,-1,-1,-1); //HIER
SendClientMessage(playerid, Blau, "SERVER: {FFFFFF}Du hast dir ein Supportermobil gespawnt!");
HatSupmobil[playerid] = 1;
}
else if(HatSupmobil[playerid]==1)
{
DestroyVehicle(SupMobil[playerid]);
HatSupmobil[playerid] = 0;
SendClientMessage(playerid, Blau, "SERVER: {FFFFFF}Du hast dein Supportermobil gelöscht!");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"* Du bist kein Admin");
}
return 1;
}
MfG