guten tag,
ich habe ein Problem mit den Fraktionen :
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(164) : warning 213: tag mismatch
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(164) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(166) : warning 213: tag mismatch
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(166) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(175) : warning 213: tag mismatch
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(175) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(265) : error 017: undefined symbol "string"
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(265) : error 017: undefined symbol "string"
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(265) : error 029: invalid expression, assumed zero
C:\Users\Andreas.I\Desktop\Neuer Ordner (3)\gamemodes\test.pwn(265) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
public OnFilterScriptExit()
{
for(new i; i<13; i++)
{
DestroyVehicle(autohaus[i]);
}
for(new i; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pKey] > 0)
{
DestroyVehicle(PlayerInfo[i][pKey]);
}
}
print("Autohaus geschlossen !");
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(PlayerInfo[playerid][pCheck] == 5)
{
GameTextForPlayer(playerid, "~r~Auto~n~~g~gefunden", 5000, 1);
DisablePlayerCheckpoint(playerid);
}
return 1;
}
{
if(!strcmp(strget(cmdtext,0),"/makeleader"))
{
if(!IsPlayerAnAdmin(playerid))
{
if(!strlen(strget(cmdtext,1)))
return
SendClientMessage(playerid,COLOR_GREY,"Benutze: /makeleader [ID] [FraktionsID]");
//new string[128];
new id3 = strval(strget(cmdtext,1));
new admin3[MAX_PLAYER_NAME];
new gang = strval(strget(cmdtext,2));
GetPlayerName(id3,admin3,sizeof(admin3));
format(string, sizeof(string), "*** Du wurdest von Admin %s zum Leader der Fraktionsnummer %d gemacht.", admin3, gang);
SendClientMessage(id3, COLOR_LIGHTRED, string);
format(string, sizeof(string), "*** Du hast %s zum Leader der Fraktionsnummer %d gemacht.", id3, gang);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
if(gang==1) { SetPlayerSkin(id3,280);Spieler[playerid][leader]= 1; }
Spieler[id3][leader] = gang;
Spieler[id3][team] = gang;
}