Mein clanload zeigt errors an bitte hilfe
Mein Code
PAWN Quelltext
1
2
3
4
5
6
7
8
9
10
stock ClanLoad(playerid,password[]){
if(IsPlayerNPC(playerid)) return 1;
new Player[64];
new string[128];
format(Player,sizeof(Player),"/Clans/%s.cfg",PlayerName(playerid));
if(!fexist(Player)) return 1;
PlayerInfo[playerid][clanname] = dini_Int(Player,"Clan");
PlayerInfo[playerid][clanstate] = dini_Int(Player,"Rang");
return 1;
}
stock Login(playerid,password[]){
if(IsPlayerNPC(playerid)) return 1;
new Player[64];
new string[128];
format(Player,sizeof(Player),"/Spieler/%s.cfg",PlayerName(playerid));
if(!fexist(Player)) return 1;
DM[playerid][8] = 1;
if(!strcmp(dini_Get(Player,"passwort"),password,true)){
LoggedIn[playerid] = 1;
SpawnPlayer(playerid);
ClearChat(playerid);
format(PlayerInfo[playerid][pPass],128,dini_Get(Player,"Passwort"));
format(string,sizeof(string),"Herzlich Willkommen zurück ' %s '",PlayerName(playerid));
PlayerInfo[playerid][pLevel] = dini_Int(Player,"Level");
PlayerInfo[playerid][pAdminLevel] = dini_Int(Player,"Adminlevel");
PlayerInfo[playerid][pCash] = dini_Int(Player,"Cash");
PlayerInfo[playerid][pKills] = dini_Int(Player,"Kills");
PlayerInfo[playerid][pDeaths] = dini_Int(Player,"Deaths");
PlayerInfo[playerid][pKD] = dini_Int(Player,"KD");
PlayerInfo[playerid][pSkin] = dini_Int(Player,"Skin");
PlayerInfo[playerid][pPremium] = dini_Int(Player,"Premium");
PlayerInfo[playerid][pSpielMinuten] = dini_Int(Player,"Spielminuten");
PlayerInfo[playerid][pWarns] = dini_Int(Player,"Warns");
PlayerInfo[playerid][pBan] = dini_Int(Player,"Banned");
ClanLoad();
SendClientMessage(playerid,COLOR_DARKGREEN,string);
SendClientMessage(playerid,COLOR_WHITE,"* Die Arenen sind unten in der Leiste eingeblendet *");
SendClientMessage(playerid,COLOR_WHITE,"* Fragen oder Probleme ? wende dich mit /a an einem Admin *");
DM[playerid][8] = 1;
if(PlayerInfo[playerid][pBan] == 1){
SendClientMessage(playerid,COLOR_RED,"Dein Account wurde Dauerhaft gesperrt, und kann nicht verwendet werden");
Kick(playerid);
}
}else{
ResetPlayer(playerid);
SendClientMessage(playerid,COLOR_RED,"Du hast ein Falsches Passwort eingegeben");
new text[256];
format(text,sizeof(text),"{FFFFFF}Herzlich Willkommen zurück auf German Purge Deathmatch, {00B700}%s {FFFFFF}!\nBitte gib unten in das Eingabefeld dein Accountpasswort ein,\num dich einzuloggen. Anschließend werden deine Accountdaten geladen.",PlayerName(playerid));
ShowPlayerDialog(playerid,dialog_login,DIALOG_STYLE_PASSWORD,"German Purge Deathmatch",text,"Login","Schließen");
}
return 1;
}
PDM.pwn(1907) : error 033: array must be indexed (variable "clanname")
C:\Users\Jan\Desktop\Purge Deathmatch\gamemodes\PDM.pwn(1908) : error 033: array must be indexed (variable "clanstate")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
bitte um hilfe