SA-MP Forums Archive
Please Help,Dealer 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)
+--- Thread: Please Help,Dealer help!! (/showthread.php?tid=591864)



Fixed - AlbaniaMafiaRP - 17.10.2015

Fixed


Re: Please Help,Dealer help!! - Luicy. - 17.10.2015

As you've wrote there, "new iFaction", It means you defined it there, So this would return zero(0).


Re: Please Help,Dealer help!! - AndySedeyn - 17.10.2015

Are you saving the player's data at all?


Re: Please Help,Dealer help!! - AlbaniaMafiaRP - 17.10.2015

yes , i want player to save data but idk


Re: Please Help,Dealer help!! - Maximun - 17.10.2015

You forget to update his stats.


Re: Please Help,Dealer help!! - AlbaniaMafiaRP - 17.10.2015

how :/ ?


Re: Please Help,Dealer help!! - AndySedeyn - 17.10.2015

You should first know how the rest of the player's data is saved in the gamemode. Is it making use of a relational database such as MySQL, SQLite or is it using a file processing library such as Y_ini, Dini..? Once you've concluded that, you should learn how these libraries work. You can then edit your gamemode so that it saves the player's data.

Tutorial MySQL: https://sampforum.blast.hk/showthread.php?tid=574714
Tutorial SQLite: https://sampforum.blast.hk/showthread.php?tid=262417
Tutorial Y_INI: https://sampforum.blast.hk/showthread.php?tid=570912
Tutorial DINI/DUDB (Deprecated, I don't recommend using this): https://sampforum.blast.hk/showthread.php?tid=270787


Re: Please Help,Dealer help!! - AlbaniaMafiaRP - 17.10.2015

@AndySendeyn thanks for your help ^_^

i fixed it i just added


Re: Please Help,Dealer help!! - AlbaniaMafiaRP - 17.10.2015

i have and here same error but dont work like dealer


Re: Please Help,Dealer help!! - AndySedeyn - 17.10.2015

Update the 'forumname' field in your file to the new value like you have done previously.

EDIT: I have posted a tutorial for DINI, it shows how to update a string value in your file.