SA-MP Forums Archive
color saving/loading zcmd - 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: color saving/loading zcmd (/showthread.php?tid=574673)



color saving/loading zcmd - suni - 19.05.2015

how can i use dini to save and load a player color?


Re: color saving/loading zcmd - Jefff - 19.05.2015

pawn Код:
dini_IntSet(filename,"PlayaColor",GetPlayerColor(giveplayerid));

SetPlayerColor(playerid, dini_Int(filename,"PlayaColor"));
Remeber that you need set any player color in OnPlayerConnect because GetPlayerColor returns black


Re: color saving/loading zcmd - Yashas - 19.05.2015

Stop using dini especially for saving/loading player stats.Its horribly insanely terribly... slow.Switch to SQLite or MySQL.


Re: color saving/loading zcmd - suni - 19.05.2015

Quote:
Originally Posted by Yashas
Посмотреть сообщение
Stop using dini especially for saving/loading player stats.Its horribly insanely terribly... slow.Switch to SQLite or MySQL.
i dont know any thing about sqlite and mysql


Re: color saving/loading zcmd - Pottus - 19.05.2015

You obviously don't know anything about ini either my suggestion focus on sqlite/mysql.


Re: color saving/loading zcmd - suni - 19.05.2015

-NOT EXIST-


Re: color saving/loading zcmd - suni - 20.05.2015

-NOT EXIST-


Re: color saving/loading zcmd - ChromeAmazing - 20.05.2015

I suggest you look up on how to use MySQL, SQLite, or ******'s Y_INI


Re: color saving/loading zcmd - icra - 20.05.2015

Use search function, you'll find A LOT of tutorials.

Anyway, use SQL.