Hallo ich habe die drei befehle im Script:
if(strcmp(cmdtext,"/lfa",true)==0){
if(PlayerInfo[playerid][pAdmin] >= 2){
for(new fc;fc<sizeof(FactionCars);fc++){
if(FactionCars[fc][fVehid] >= 400 && FactionCars[fc][fVehid] <= 611){
new Float:fX,Float:fY,Float:fZ;
GetVehiclePos(FactionCars[fc][fCarid],fX,fY,fZ);
if(IsPlayerInRangeOfPoint(playerid,4.0,fX,fY,fZ)){
FactionCars[fc][fVehid] = -255;
if(DestroyVehicle(FactionCars[fc][fCarid])){
FactionCars[fc][fCarid] = -255;
}return SendClientMessage(playerid,FACTION_COL_YELLOW,"Du hast das Fraktionsfahrzeug entfernt.");
}
}
}
}else SendClientMessage(playerid,FACTION_COL_GREY,"Du bist nicht berechtigt diesen Befehl anzuwenden.");
return true;
}
if(strcmp(cmdtext,"/rafa",true)==0){
if(PlayerInfo[playerid][pAdmin] >= 2){
new fName[MAX_PLAYER_NAME];
GetPlayerName(playerid,fName,sizeof(fName));
format(string,sizeof(string),"Server: %s hat alle Fraktionsfahrzeuge respawnt.",fName);
SendClientMessageToAll(FACTION_COL_YELLOW,string);
for(new fc;fc<sizeof(FactionCars);fc++){
if(FactionCars[fc][fVehid] >= 400 && FactionCars[fc][fVehid] <= 611)
DestroyAndCreateFactionCar(fc);
}
}else SendClientMessage(playerid,FACTION_COL_GREY,"Du bist nicht berechtigt diesen Befehl anzuwenden.");
return true;
}
if(strcmp(cmdtext,"/ramfa",true)==0){
if(PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pRank] >= 11)){
if(gettime() < LastRespawned[GetPlayerFaction(playerid)-1])
return SendClientMessage(playerid,FACTION_COL_GREY,"Du kannst deine Fahrzeuge nur alle '5' Minuten respawnen.");
LastRespawned[GetPlayerFaction(playerid)-1] = gettime()+(60*5);
for(new fc;fc<sizeof(FactionCars);fc++){
if(FactionCars[fc][fVehid] >= 400 && FactionCars[fc][fVehid] <= 611){
if(FactionCars[fc][fFaction][0] == GetPlayerFaction(playerid)){
DestroyAndCreateFactionCar(fc);
}
}
}SendClientMessage(playerid,FACTION_COL_YELLOW,"Du hast deine Fraktionsfahrzeuge erfolgreich respawnt.");
}else SendClientMessage(playerid,FACTION_COL_GREY,"Du bist nicht berechtigt diesen Befehl anzuwenden.");
return true;
}
und bei mir kommen nun die fehler:
C:\Users\Adminstrator.VADIM\Desktop\reallife\gamemodes\IR.pwn(21136) : error 017: undefined symbol "FactionCars"
C:\Users\Adminstrator.VADIM\Desktop\reallife\gamemodes\IR.pwn(21136) : error 036: empty statement
C:\Users\Adminstrator.VADIM\Desktop\reallife\gamemodes\IR.pwn(21136) : error 017: undefined symbol "fc"
C:\Users\Adminstrator.VADIM\Desktop\reallife\gamemodes\IR.pwn(21136) : fatal error 107: too many error messages on