Posts: 280
Threads: 62
Joined: Aug 2014
Reputation:
0
how can i use dini to save and load a player color?
Posts: 2,593
Threads: 34
Joined: Dec 2007
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
Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
Stop using dini especially for saving/loading player stats.Its horribly insanely terribly... slow.Switch to SQLite or MySQL.
Posts: 262
Threads: 20
Joined: Jun 2014
Reputation:
0
I suggest you look up on how to use MySQL, SQLite, or ******'s Y_INI
Posts: 96
Threads: 8
Joined: Jun 2014
Reputation:
0
Use search function, you'll find A LOT of tutorials.
Anyway, use SQL.