Hey also habe es endlich geschaft ein admin sys zu erstellen
jetzt will ich noch machen das ich die admin lvl in meiner scriptfile sehe
habe das so gemacht
enum pInfo
padminlvl,
new Adminlvl[MAX_PLAYER_NAME];
new pAdminlvl[MAX_PLAYER_NAME];
format(var, 32, "%s\n", PlayerInfo[playerid][pPassword]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Adminlvl=%d\n",PlayerInfo[playerid][Adminlvl]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
key = ini_GetKey(Data);
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
if( strcmp( key , "Adminlvl" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminlvl] = strval( val ); }
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Adminlvl=%d\n",PlayerInfo[playerid][Adminlvl]);fwrite(hFile, var);
J:\spiele\gta-sa\gamemodes\blanko.pwn(395) : error 033: array must be indexed (variable "Adminlvl")
J:\spiele\gta-sa\gamemodes\blanko.pwn(528) : error 033: array must be indexed (variable "pAdminlvl")
J:\spiele\gta-sa\gamemodes\blanko.pwn(574) : error 033: array must be indexed (variable "Adminlvl")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
das sind jetzt die fehler was habe ich falsch gemacht
Edit; habe schonmal rausgefunden das dass heist reihe muss registriert werden
aber wie ???