Saving score/money to enum? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Saving score/money to enum? (
/showthread.php?tid=220747)
Saving score/money to enum? -
YungGee - 04.02.2011
Ok im fimiliar on how enums work but what must i add under OnPlayerDissconnect to save there score and money?
Please help
Re: Saving score/money to enum? -
IvanCroatiaCopy - 04.02.2011
I hope you use Dini..
Код:
dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
dini_IntSet(file, "Money", PlayerInfo[playerid][pCash]);
And it will save
Re: Saving score/money to enum? -
YungGee - 04.02.2011
Thankyou
Yes Dini, And i can get there score like this?:
Код:
dUserSetINT(pName(playerid)).("score",GetPlayerScore(playerid));
Some shit like that?