Posts: 194
Threads: 29
Joined: Jul 2013
Reputation:
0
I wonder how can I do that? How can I list the top killers of all time with yini in a dialog? I just need an example since I don't know how to make one.
Posts: 791
Threads: 65
Joined: Oct 2009
Reputation:
0
every time someone gets a kill you add it to a variable KillCount[playerid] or somthing.
then when they quit or disconnect you write it into a file..
then u would load them but reading all files every time u do that command. it might be slow idk, if u have many players, maybe u can put it all in one file and make different lines represent different player kill count. idk i think u get the idea
Posts: 194
Threads: 29
Joined: Jul 2013
Reputation:
0
Well the thing is how can I make the server read all files with yini?
Posts: 791
Threads: 65
Joined: Oct 2009
Reputation:
0
idk then put it all in one file containing everyone's kill count on different lines.
maybe wait for someone else reply cause they might have a better idea but im pretty sure this is the way you do it
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Statistics like that are not feasible with flat file systems.
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
It allows you to see more kill statistics later on, it just shows the great capabilities of using SQL. And files just make more work, will be slower and have no advantages even if you can get it to work properly.
Posts: 194
Threads: 29
Joined: Jul 2013
Reputation:
0
I don't know how to use MySQL or SQL, Can you give me the link of a good SQL tutorial so I convert from yini please?