Hallo,
Ich hab ein Problem, ich bekomme diesen Error aber ich krieg den net weg
Errors:
C:\Users\windows\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15478) : error 028: invalid subscript (not an array or too many subscripts): "bonnet"
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15478) : warning 215: expression has no effect
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15478) : error 001: expected token: ";", but found "]"
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15478) : error 029: invalid expression, assumed zero
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15478) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Die Zeile:
if(bonnet[vid] == false)
und der ganze Befehl:
if(strcmp(cmdtext, "/motorhaube", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(bonnet[vid] == false)
{
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
bonnet[vid] = true;
SendClientMessage(playerid,0xFF0000,"Du hast die Motorhaube geöffnet!");
}
else
{
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
bonnet[vid] = false;
SendClientMessage(playerid,0xFF0000,"Du hast die Motorhaube geschlossen!");
}
}
return 1;
}
Viele Grüße
Pro Scripter