Huhu Community!
Ich habe eine Frage und zwar:
Wie lade ich mein Account richtig?
Ich habe es bereits so:
stock LoadAccount(playerid)
{
new SD[64],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(SD,sizeof(SD),"/Spieler/%s [%i].ini",name,GetPlayerScore(playerid));
if(dini_Exists(SD))
{
SetPlayerScore(playerid,dini_Get(SD,"Level")); // Error
sInfo[playerid][Level] = GetPlayerScore(playerid);
sInfo[playerid][Adminlevel] = dini_Get(SD,"Adminlevel"); // Error
sInfo[playerid][Money] = GetPlayerMoney(playerid);
sInfo[playerid][Skin] = GetPlayerSkin(playerid);
sInfo[playerid][Kills] = dini_Get(SD,"Kills"); // Error
sInfo[playerid][Tode] = dini_Get(SD,"Tode"); // Error
sInfo[playerid][Gebannt] = dini_Get(SD,"Gebannt"); // Error
sInfo[playerid][Eingeloggt] = dini_Get(SD,"Eingeloggt"); // Error
return 1;
}
return 1;
}
Jedoch spuckt er sämtliche Error's aus:
D:\Rockstar Games\gamemodes\Projekt.pwn(404) : error 035: argument type mismatch (argument 2)
D:\Rockstar Games\gamemodes\Projekt.pwn(406) : error 006: must be assigned to an array
D:\Rockstar Games\gamemodes\Projekt.pwn(409) : error 006: must be assigned to an array
D:\Rockstar Games\gamemodes\Projekt.pwn(410) : error 006: must be assigned to an array
D:\Rockstar Games\gamemodes\Projekt.pwn(411) : error 006: must be assigned to an array
D:\Rockstar Games\gamemodes\Projekt.pwn(412) : error 006: must be assigned to an array