SA-MP Forums Archive
[HELP] Help? - 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: [HELP] Help? (/showthread.php?tid=257586)



[HELP] Help? - Janek17 - 26.05.2011

Hey all i don't know how do make a saving score system useing Dini.inc
Look this code and can you help me?

pawn Код:
PlayerInfo[playerid][Score] = dini_Int(file,"Score");



Re: [HELP] Help? - Fj0rtizFredde - 26.05.2011

You could do something like this:
pawn Код:
dini_IntSet(file, "Score", PlayerInfo[playerid][Score]);
//Or even this:
dini_IntSet(file, "Score", GetPlayerScore(playerid));