Hier gehts:
stock SpielerSpeichern()
{
new Player[64];
new Sname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Sname,sizeof(Sname));
format(player,sizeof(player),"/player/%s.txt",Sname);
if(dini_Exists(Player))
{
dini_IntSet(Player,"Adminlevel",sPlayer[playerid][AdminLevel]);
dini_IntSet(Player,"Level",sPlayer[playerid][Level]);
dini_IntSet(Player,"Fraktion",sPlayer[playerid][Fraktion]);
dini_IntSet(Player,"Team",sPlayer[playerid][Team]);
}
return 1;
}
Und hier nicht
stock SpielerLaden(playerid)
{
new Player[64];
new Sname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Sname,sizeof(Sname));
format(player,sizeof(player),"/player/%s.txt",Sname);
if(dini_Exists(Player))
{
SetPlayerScore(playerid,dini_Get(player,"Level");
sPlayer[playerid][AdminLevel] = dini_Get[Player,"AdminLevel");
sPlayer[playerid][Level] = dini_Get[Player,"Level");
sPlayer[playerid][Fraktion] = dini_Get[Player,"Fraktion");
sPlayer[playerid][Team] = dini_Get[Player,"Team");
}
return 1;
}