Hey,
Ich hab mit mein Kumpel ein Motorsystem in mein Script eingefügt jetzt habe ich ein Problem
Es gibt Errors...
Zeilen:
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15383) : error 033: array must be indexed (variable "status")
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15410) : error 033: array must be indexed (variable "status")
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15439) : error 033: array must be indexed (variable "text")
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15466) : error 033: array must be indexed (variable "status")
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15491) : error 033: array must be indexed (variable "status")
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15516) : error 033: array must be indexed (variable "status")
C:\Users\*****\Desktop\SA-MP 0.3c R4\gamemodes\LosAngelesReallife.pwn(15542) : error 033: array must be indexed (variable "status")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Der Befehl:
if(strcmp(cmdtext, "/licht", true) == 0)
{
new status[4];
if(!status)return SendClientMessage(playerid,COLOR_YELLOW,"/licht an/aus");
new engine,lights,alarm,doors,bonnet,boot,objective;
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
if(strcmp(status,"an",true) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
licht[vid] = true;
SendClientMessage(playerid,0xFF0000,"Du hast das Licht angeschaltet!");
}
else
if(strcmp(status,"aus",true) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
licht[vid] = false;
SendClientMessage(playerid,0xFF0000,"Du hast das Lich ausgeschaltet!");
}
}
return 1;
}
Mfg
ProScripter
EDIT: Titel geändert