07.10.2011, 10:24
When i click on 'login' button ALL my stats in account file reset on 0 float stats on 0.00000 JUST password hash stay... I don't understand why....
pawn Код:
INI_ParseFile(Data, "LoadUser", .bExtra = true, .extra = playerid);
forward LoadUser(playerid,name[],value[]);
public LoadUser(playerid,name[],value[])
{
INI_Int("Lozinka", PlayerInfo[playerid][Lozinka]);
INI_Int("pMoney", PlayerInfo[playerid][pMoney]);
INI_Int("pLevel", PlayerInfo[playerid][pLevel]);
INI_Int("pKills", PlayerInfo[playerid][pKills]);
INI_Int("pDeaths", PlayerInfo[playerid][pDeaths]);
INI_Int("pBank", PlayerInfo[playerid][pBank]);
INI_Int("pAdmin", PlayerInfo[playerid][pAdmin]);
INI_Int("pSpawn", PlayerInfo[playerid][pSpawn]);
INI_Float("ucpX", PlayerInfo[playerid][ucpX]);
INI_Float("ucpY", PlayerInfo[playerid][ucpY]);
INI_Float("ucpZ", PlayerInfo[playerid][ucpZ]);
INI_Float("ucpFact", PlayerInfo[playerid][ucpFact]);
INI_Int("ucpInt", PlayerInfo[playerid][ucpInt]);
INI_Int("ucpVw", PlayerInfo[playerid][ucpVw]);
return (true);
}