PDA

View Full Version : Please Help,Dealer help!!


AlbaniaMafiaRP
17/10/2015, 07:48 PM
Fixed

Luicy.
17/10/2015, 07:51 PM
As you've wrote there, "new iFaction", It means you defined it there, So this would return zero(0).

AndySedeyn
17/10/2015, 07:52 PM
Are you saving the player's data at all?

AlbaniaMafiaRP
17/10/2015, 07:52 PM
yes , i want player to save data :( but idk

Maximun
17/10/2015, 07:53 PM
You forget to update his stats.

AlbaniaMafiaRP
17/10/2015, 07:55 PM
how :/ ?

AndySedeyn
17/10/2015, 07:59 PM
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: http://forum.sa-mp.com/showthread.php?t=574714
Tutorial SQLite: http://forum.sa-mp.com/showthread.php?t=262417
Tutorial Y_INI: http://forum.sa-mp.com/showthread.php?t=570912
Tutorial DINI/DUDB (Deprecated, I don't recommend using this): http://forum.sa-mp.com/showthread.php?t=270787

AlbaniaMafiaRP
17/10/2015, 08:01 PM
@AndySendeyn thanks for your help ^_^

i fixed it i just added

AlbaniaMafiaRP
17/10/2015, 08:03 PM
i have and here same error but dont work like dealer :(

AndySedeyn
17/10/2015, 08:05 PM
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.

AlbaniaMafiaRP
17/10/2015, 08:06 PM
i know that but here idk :/

dini_Set(dealerr, "dealer", "1");
|the number one how to change it i did %d appear's error i did %s again error :(

AndySedeyn
17/10/2015, 08:08 PM
EDIT: I have posted a tutorial for DINI, it shows how to update a string value in your file.

Please read my edit in my previous reply. I quoted it for your convenience. The tutorial shows how to update a string value in your file.

Tutorial: http://forum.sa-mp.com/showthread.php?t=270787

AlbaniaMafiaRP
17/10/2015, 08:10 PM
thanks ,your a good helper ^_^ , thanks for helping me get out from this mess :) fixed it!
I would never fix it ,if you wasnt here!