Hey, mein Geld & Scroe speichert nicht nach Relogg.
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
new Name[MAX_PLAYER_NAME],path[64];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
format(path, sizeof(path),"/Spieler/%s.ini", Name);
SpielerInfo[playerid][pScore] = GetPlayerScore(playerid);
SpielerInfo[playerid][pAdmin] = dini_Int(path, "Admin");
SpielerInfo[playerid][pRadio] = dini_Int(path, "Radio");
SpielerInfo[playerid][pHandy] = dini_Int(path, "Handy");
SpielerInfo[playerid][pLaptop] = dini_Int(path, "Laptop");
SpielerInfo[playerid][pKnast] = dini_Int(path, "Knast");
SpielerInfo[playerid][pMinZeit] = dini_Int(path, "MinZeit");
SpielerInfo[playerid][pZeit] = dini_Int(path, "Zeit");
SpielerInfo[playerid][pDifferenzZeit] = dini_Int(path, "DifferenzZeit");
SpielerInfo[playerid][pTutorial] = dini_Int(path, "Tutorial");
SpielerInfo[playerid][pFraktion] = dini_Int(path, "Fraktion");
SpielerInfo[playerid][pGeld] = GetPlayerMoney(playerid);
SpielerInfo[playerid][pLeader] = dini_Int(path, "Leader");
SpielerInfo[playerid][pRang] = dini_Int(path, "Rang");
SpielerInfo[playerid][pContract] = dini_Int(path, "Contract");
SpielerInfo[playerid][pContractGeld] = dini_Int(path, "ContractGeld");
SpielerInfo[playerid][pTazed] = dini_Int(path, "Tazed");
SpielerInfo[playerid][pHaus] = dini_Int(path, "Haus");
}
return 1;
}
stock SavePlayer(playerid)
{
if(GetPVarInt(playerid, "Eingeloggt") == 1)
{
new Name[MAX_PLAYER_NAME],path[64];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
format(path, sizeof(path),"/Spieler/%s.ini", Name);
dini_IntSet(path,"Level", SpielerInfo[playerid][pScore]);
dini_IntSet(path,"Admin", SpielerInfo[playerid][pAdmin]);
dini_IntSet(path, "Radio", SpielerInfo[playerid][pRadio]);
dini_IntSet(path, "Handy", SpielerInfo[playerid][pHandy]);
dini_IntSet(path, "Laptop", SpielerInfo[playerid][pLaptop]);
dini_IntSet(path,"Knast",SpielerInfo[playerid][pKnast]);
dini_IntSet(path, "MinZeit", SpielerInfo[playerid][pMinZeit]);
dini_IntSet(path, "Zeit", SpielerInfo[playerid][pZeit]);
dini_IntSet(path, "DifferenzZeit", SpielerInfo[playerid][pDifferenzZeit]);
dini_IntSet(path, "Tutorial", SpielerInfo[playerid][pTutorial]);
dini_IntSet(path, "Fraktion",SpielerInfo[playerid][pFraktion]);
dini_IntSet(path, "Contract", SpielerInfo[playerid][pContract]);
dini_IntSet(path, "ContractGeld", SpielerInfo[playerid][pContractGeld]);
dini_IntSet(path,"Geld", SpielerInfo[playerid][pGeld]);
dini_IntSet(path,"Leader", SpielerInfo[playerid][pLeader]);
dini_IntSet(path,"Rang", SpielerInfo[playerid][pRang]);
dini_IntSet(path,"Tazed", SpielerInfo[playerid][pTazed]);
dini_IntSet(path,"Haus", SpielerInfo[playerid][pHaus]);
}
return 1;
}