SA-MP Forums Archive
SQL reading. - 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: SQL reading. (/showthread.php?tid=321893)



SQL reading. - iGetty - 28.02.2012

How do I read from my SQL table, things like...


I have a /members command. I want to see who is online and also, the people that are offline. How do I do this?

Thank you.

(It's all SQL based, so please help).


Re: SQL reading. - Ricop522 - 28.02.2012

"SELECT name FROM table WHERE Faction = 1"


Re: SQL reading. - iGetty - 28.02.2012

Could you explain a bit, is

"name" the players name?

"table" would be my table's name?

The rest is alright.

Thanks.


Re: SQL reading. - Luis- - 28.02.2012

The table would be your faction table name EG: factions.