SA-MP Forums Archive
How to make Account ID and more... - 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: How to make Account ID and more... (/showthread.php?tid=390439)



How to make Account ID and more... - JaKe Elite - 06.11.2012

Hello,

I want to create Account ID system,
I know how to do it, But it fails, It always return 0.
That's why i delete it, How to create one like

Account ID 0, 1, 2 etc...

Also how to create a count time system (When player connects it will start count like 00:01, 00:02, etc)
When player reach more than like (59:59), It will add a digit like this (01:00:00)

I know how to do it, But i can't make that adding "0 - Zero" System


Re: How to make Account ID and more... - linuxthefish - 06.11.2012

There are tons of tutorials on creating user accounts.


Re: How to make Account ID and more... - JaKe Elite - 06.11.2012

I'm not asking for how to create user accounts,
I'm asking how to make Account ID system which counts the player

like

Account ID: 10th


Re: How to make Account ID and more... - XtremeR - 06.11.2012

for Total accounts use this:

pawn Код:
stock GetTotalAccounts()
{
    new myQuery[256], total;
    format(myQuery, sizeof(myQuery), "SELECT * FROM `Tablename`");
    mysql_query(myQuery);
    mysql_store_result();
    total = mysql_num_rows();
    mysql_free_result();
    return total;
}



Re: How to make Account ID and more... - JaKe Elite - 06.11.2012

I'm not current using mysql.

How about the Count Time System?
I'm done with Account ID system.