Just some saving issue. - 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)
+--- Thread: Just some saving issue. (
/showthread.php?tid=282441)
Just some saving issue. -
Grant Johnston - 11.09.2011
PHP код:
new amount;
GetPlayerMoney(playerid, amount);
DOF2_SetInt(file, "Money",PlayerInfo[playerid][pMoney] = amount); // Sets the Number
DOF2_SaveFile(); // saves the changes
Yeah.. the Number is being saved as Zero. I Bet its something simple, Can anybody advise?
Thanks
Re: Just some saving issue. -
[O.z]Caroline - 11.09.2011
pawn Код:
DOF2_SetInt(file, "Money",GetPlayerMoney(playerid)); // Sets the Number
DOF2_SaveFile(); // saves the changes
The GetPlayerMoney no has parameters.
Re: Just some saving issue. -
Grant Johnston - 11.09.2011
Thanks