Hallo,
Nachdem ich lange Zeit dini nutze und mit MySQL nicht gut klar komme wollte ich mal das
Include SII von Slick nutzen.
So jedoch speichert es bei mir nichts ab.
Nach der Registration erstelle ich die Datei noch mittels dini_Create aber unter OnPlayerDisConnect wird
nichts gespeichert.
INI_Create(accFormat);
if(INI_Open(accFormat))
{
INI_WriteString("Passwort",inputtext);
INI_Save();
INI_Close();
}
if(Player[playerid][eingeloggt] == 1)
{
if(INI_Open(accFormat))
{
INI_WriteInt("Kills",Player[playerid][Kills]);
INI_WriteInt("Points",Player[playerid][Pkt]);
INI_WriteInt("Deaths",Player[playerid][Deaths]);
INI_WriteInt("Geld",GetPlayerMoney(playerid));
INI_WriteInt("Score",GetPlayerScore(playerid));
INI_WriteInt("Wantedlevel",Player[playerid][Wantedlevel]);
INI_WriteInt("Admin",Player[playerid][Admin]);
INI_WriteInt("Drugs",Player[playerid][Drugs]);
INI_WriteInt("Spawn",Player[playerid][spawnc]);
INI_WriteInt("WantedVariable",Player[playerid][WVar]);
INI_WriteInt("HausVariable",Player[playerid][HVar]);
INI_WriteInt("Shotgunskill",Player[playerid][Shotgun]);
INI_WriteInt("SawnOff",Player[playerid][SawnOff]);
INI_WriteInt("Spas12",Player[playerid][Spas12]);
INI_WriteInt("Premium",Player[playerid][VIP]);
INI_WriteInt("Bank",Player[playerid][Bank]);
INI_WriteInt("Verwarnungen",Player[playerid][Warns]);
INI_WriteInt("GPS",Player[playerid][GPS]);
INI_WriteString("Rank",string_rank );
INI_WriteInt("Knastzeit",knastzeit[playerid]);
INI_Save();
INI_Close();
}
}