22.12.2013, 20:24
you managed to save the PW, what's so difficult about saving money pal?
it's that simple if you're using enum's to store the stats
PHP код:
enum e_pInfo
{
pSQLid,
pPass[129],
pSalt[30],
pScore,
pMoney
}
new Pi[MAX_PLAYERS][e_pInfo];
//now when a player earns some money, just do
GivePlayerMoney(playerid, 500);
Pi[playerid][pMoney] += 500;
//and just add it to the playerfile or mysql table on disconnect, just like your PW