Samp API Query Mechanism
#5

If you're going to use it for your own server, there are ways.
For example:
You had a new column in the Player table, with the name "connected"(smallint)
When a player connect, and load his data, you put the value there for 1.
When the player disconnects, change the value for 0

Now, you just need to query the database, example:
Код:
SELECT `Name`,`Score` FROM  `Players` WHERE `Connected` = 1
This should do the trick
Reply


Messages In This Thread
Samp API Query Mechanism - by Clivlend - 18.11.2014, 06:27
Re: Samp API Query Mechanism - by Clivlend - 18.11.2014, 10:49
Re: Samp API Query Mechanism - by GWMPT - 18.11.2014, 11:06
Re: Samp API Query Mechanism - by Clivlend - 18.11.2014, 11:26
Re: Samp API Query Mechanism - by GWMPT - 18.11.2014, 11:39
Re: Samp API Query Mechanism - by Clivlend - 18.11.2014, 13:23
Re: Samp API Query Mechanism - by nickdodd25 - 18.11.2014, 16:19
Re: Samp API Query Mechanism - by Clivlend - 19.11.2014, 08:48
Re : Samp API Query Mechanism - by Nicow - 19.11.2014, 09:58

Forum Jump:


Users browsing this thread: 1 Guest(s)