Hallo mein Geld wird nicht gespeichert hier oben bei enum info
enum info
{
geld,
}
Dann:
==========================================================
public login(playerid)
{
new name[MAX_PLAYER_NAME];
new save[40];
GetPlayerName(playerid,name,sizeof(name));
format(save,sizeof(save),"/Spieler/%s.ini",name);
pInfo[playerid][admin] = dini_Int(save,"Adminlevel");
SetPlayerMoney(playerid, dini_Int(save,"geld"));
pInfo[playerid][score] = dini_Int(save,"Score");
return 1;
}
public logout(playerid)
{
new name[MAX_PLAYER_NAME];
new save[40];
GetPlayerName(playerid,name,sizeof(name));
format(save,sizeof(save),"/Spieler/%s.ini",name);
//Speicherung
dini_IntSet(save,"Adminlevel",pInfo[playerid][admin]);
dini_IntSet(save,"geld",GetPlayerMoney(playerid));
dini_IntSet(save,"Score",GetPlayerScore(playerid));
return 1;
}