16.12.2012, 05:56
Quote:
pawn Код:
|
This is how I have it now when someone logins
pawn Код:
PlayerData[playerid][pAdmin] = dini_Int(file, "Admin");
PlayerData[playerid][pPlayTime] = dini_Int(file, "PlayTime");
SetPlayerScore(playerid, dini_Int(file, "Score"));
SetPlayerMoney(playerid, dini_Int(file, "Cash"));
pawn Код:
INI_Int("Admin", PlayerData[playerid][pAdmin]);
INI_Int("PlayTime", PlayerData[playerid][pPlayTime]);
INI_Int("Score", PlayerData[playerid][pScore]);
INI_Int("Cash", PlayerData[playerid][pCash]);
SetPlayerScore(playerid, PlayerData[playerid][pScore]);
SetPlayerMoney(playerid, PlayerData[playerid][pCash]);
pawn Код:
SetPlayerScore(playerid, INI_Int("Score"));
SetPlayerMoney(playerid, INI_Int("Cash"));