Geht auch nicht.
Hab nochmal in die .ini Datei geschaut, seltsamerweise ist das alles wieder weg...
So sieht mein Disconnect aus:
public OnPlayerDisconnect(playerid, reason)
{
new accFormat[128];
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Error)", pName);
case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/ban)", pName);
}
SendClientMessageToAll(COLOR_RED, string);
format(accFormat,sizeof accFormat,"%s.datei",pName);
DeleteTicket(playerid);
if(fexist(accFormat) && ploggedin[playerid] == 1)
{
pInfo[playerid][pGeld] = GetPlayerMoney(playerid);
pInfo[playerid][pWanted] = GetPlayerWantedLevel(playerid);
pInfo[playerid][pSkin] = GetPlayerSkin(playerid);
dini_IntSet(accFormat,"pWanted",pInfo[playerid][pWanted]);
dini_IntSet(accFormat,"pSkin",pInfo[playerid][pSkin]);
dini_IntSet(accFormat,"pRank",pInfo[playerid][pRank]);
dini_IntSet(accFormat,"pLeader",pInfo[playerid][pLeader]);
dini_IntSet(accFormat,"pTut",pInfo[playerid][pTut]);
dini_IntSet(accFormat,"pAlter",pInfo[playerid][pAlter]);
dini_IntSet(accFormat,"pFraktion",gTeam[playerid]);
dini_IntSet(accFormat,"pGeld",pInfo[playerid][pGeld]);
dini_IntSet(accFormat,"pPerso",pInfo[playerid][pPerso]);
dini_IntSet(accFormat,"pWarns",pInfo[playerid][pWarns]);
dini_IntSet(accFormat,"pSsperre",pInfo[playerid][pSsperre]);
dini_IntSet(accFormat,"pNagelband",pInfo[playerid][pNagelband]);
dini_Set(accFormat,"pGeschlecht",pInfo[playerid][pGeschlecht]);
dini_Set(accFormat,"pWohnort",pInfo[playerid][pWohnort]);
dini_IntSet(accFormat,"pCarLic",pInfo[playerid][pCarLic]);
dini_IntSet(accFormat,"pBombe",pInfo[playerid][pBombe]);
dini_IntSet(accFormat,"pFRank",pInfo[playerid][pFRank]);
dini_IntSet(accFormat,"pJob",pInfo[playerid][pJob]);
dini_IntSet(accFormat,"pSBBombe",pInfo[playerid][pSBBombe]);
dini_IntSet(accFormat,"pJail",pInfo[playerid][pJail]);
dini_IntSet(accFormat,"pJailTime",pInfo[playerid][pJailTime]);
}
pInfo[playerid][pWanted] = 0;
pInfo[playerid][pSkin] = 0;
pInfo[playerid][pCarLic] = 0;
pInfo[playerid][pGeld] = 0;
pInfo[playerid][pTut] = 0;
pInfo[playerid][pJob] = 0;
pInfo[playerid][pAlter] = 0;
pInfo[playerid][pPerso] = 0;
pInfo[playerid][pRank] = 0;
pInfo[playerid][pSsperre] = 0;
pInfo[playerid][pNagelband] = 0;
pInfo[playerid][pBombe] = 0;
pInfo[playerid][pSBBombe] = 0;
pInfo[playerid][pWarns] = 0;
pInfo[playerid][pPerso] = 0;
pInfo[playerid][pFRank] = 0;
pInfo[playerid][pJail] = 0;
pInfo[playerid][pJailTime] = 0;
pInfo[playerid][pLeader] = 0;
gTeam[playerid] = 0;
SetPlayerMoney(playerid, 0);
SetPlayerSkin(playerid, 0);
SetPlayerWantedLevel(playerid, 0);
return 1;
}
Und hier wirds geladen:
pInfo[playerid][pWanted] = dini_Int(accFormat,"pWanted");
pInfo[playerid][pSkin] = dini_Int(accFormat,"pSkin");
pInfo[playerid][pRank] = dini_Int(accFormat,"pRank");
pInfo[playerid][pLeader] = dini_Int(accFormat,"pLeader");
pInfo[playerid][pTut] = dini_Int(accFormat,"pTut");
pInfo[playerid][pAlter] = dini_Int(accFormat,"pAlter");
pInfo[playerid][pGeld] = dini_Int(accFormat,"pGeld");
pInfo[playerid][pPerso] = dini_Int(accFormat,"pPerso");
pInfo[playerid][pWarns] = dini_Int(accFormat,"pWarns");
pInfo[playerid][pGeschlecht] = dini_Int(accFormat,"pGeschlecht");
pInfo[playerid][pWohnort] = dini_Int(accFormat,"pWohnort");
pInfo[playerid][pCarLic] = dini_Int(accFormat,"pCarLic");
pInfo[playerid][pBombe] = dini_Int(accFormat,"pBombe");
pInfo[playerid][pNagelband] = dini_Int(accFormat,"pNagelband");
pInfo[playerid][pSsperre] = dini_Int(accFormat,"pSsperre");
pInfo[playerid][pSBBombe] = dini_Int(accFormat,"pSBBombe");
pInfo[playerid][pJail] = dini_Int(accFormat,"pJail");
pInfo[playerid][pFRank] = dini_Int(accFormat, "pFRank");
pInfo[playerid][pJob] = dini_Int(accFormat,"pJob");
pInfo[playerid][pJailTime] = dini_Int(accFormat,"pJailTime");
SetPlayerWantedLevel(playerid, pInfo[playerid][pWanted]);
SetPlayerMoney(playerid, pInfo[playerid][pGeld]);
SetPlayerSkin(playerid, pInfo[playerid][pSkin]);