31.05.2011, 22:34
Try this
Make sure you load the variables into the PlayerInfo[playerid][data] when they login.
pawn Код:
enum data
{
AdminLevel,
VIP,
PlayerCash,
Rank
}
new PlayerInfo[MAX_PLAYERS][data];
public SavePlayer()
{
dini_IntSet(File, "PlayerMoney", PlayerInfo[playerid][PlayerCash] = GetPlayerMoney(playerid));
dini_IntSet(File, "AdminLevel", PlayerInfo[playerid][AdminLevel]);
dini_IntSet(File, "Rank", PlayerInfo[playerid][Rank] = GetPlayerScore(playerid));
dini_IntSet(File, "VIP", PlayerInfo[playerid][VIP]);
return 1;
}