Problem saving playerdata
#3

Not working, getting thsi now:
Код:
Ip =
If i didn't do this right (down here), please correct me

pawn Код:
public OnPlayerDisconnect(playerid, reason)
    {
        new file[200], name[MAX_PLAYER_NAME], ip[16];
        GetPVarString(playerid,"pIP",ip,sizeof(ip));
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), PlayerFile, name);
        dini_Set(file, "Name", name);
        dini_Set(file, "Ip", ip);
        dini_IntSet(file, "Registered", gPlayerInfo[playerid][PLAYER_REGGED]);
        dini_IntSet(file, "Password", gPlayerInfo[playerid][PLAYER_PASS]);
        dini_IntSet(file, "Level", gPlayerInfo[playerid][PLAYER_LEVEL]);
        dini_IntSet(file, "Vip", gPlayerInfo[playerid][PLAYER_VIP]);
        dini_IntSet(file, "Money", GetPlayerMoney(playerid));
        dini_IntSet(file, "Score", GetPlayerScore(playerid));
        gPlayerLogged[playerid] = 0;
        return 1;
    }
Reply


Messages In This Thread
Problem saving playerdata - by Wesley221 - 30.05.2011, 13:50
AW: Problem saving playerdata - by Julian12345 - 30.05.2011, 14:35
Re: Problem saving playerdata - by Wesley221 - 30.05.2011, 15:33
AW: Problem saving playerdata - by Julian12345 - 30.05.2011, 16:09
Re: Problem saving playerdata - by Wesley221 - 30.05.2011, 18:17
Re: Problem saving playerdata - by Georgelopez1 - 30.05.2011, 18:23
Re: Problem saving playerdata - by Wesley221 - 31.05.2011, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)