Y_Ini Save GetPVarInt And Load SetPVarInt
#3

Its saving but its not loading.


pawn Код:
//load user
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Logged",PlayerInfo[playerid][pLogged]);
    INI_Int("Class",PlayerInfo[playerid][pClass]);
    INI_Int("Money",PlayerInfo[playerid][pCash]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    return 1;
}

//dialog login
new string[256];
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
PlayerInfo[playerid][pClass]=PlayerInfo[playerid][pClass];
PlayerInfo[playerid][pLogged]=1;

//onplayerreqclass
if(PlayerInfo[playerid][pClass]==1)
    {
        Class_Goto(playerid, 0);
    }
Reply


Messages In This Thread
Y_Ini Save GetPVarInt And Load SetPVarInt - by Admigo - 08.05.2012, 18:54
Re: Y_Ini Save GetPVarInt And Load SetPVarInt - by Ballu Miaa - 08.05.2012, 19:04
Re: Y_Ini Save GetPVarInt And Load SetPVarInt - by Admigo - 08.05.2012, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)