color saving/loading zcmd
#1

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

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
Reply
#3

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

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
Reply
#5

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

-NOT EXIST-
Reply
#7

-NOT EXIST-
Reply
#8

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

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

Anyway, use SQL.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)