Accounts Count [ Help ]
#1

I use Y_INI to save my players accounts and i wanna make something like:
Sa-mp.Com has registered and now are x accounts registered
how to make that red thing ?
Reply
#2

Make a file in which has a variable, named eg. RegisteredPlayerAmount and add one to that value every register.
Example:

pawn Код:
GlobalInfo[RegisteredPlayAmount]++;
//Or
GlobalInfo[RegisteredPlayAmount] += 1;
Reply
#3

The solution above works (you should add the number of currently registered accounts
there manually though), but if you want to use your data effectively, you should consider
changing to MySQL.

With MySQL you could use just "SELECT COUNT(*) FROM `table`" and that's it. Also if you
are planning on ever accessing the data for instance from a website, MySQL is significantly
better option.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)