Posts: 132
Threads: 42
Joined: Jun 2012
Reputation:
0
How can i to retrieve data from mysql?
The player is offline, but i have to know what is his/her faction number.
Among all the registered player show you who they are in no. 1 fraction into a SendClientMessage
A lot of thanks.
Posts: 864
Threads: 57
Joined: Jan 2013
Reputation:
0
Get all the datas with a for(each) loop, then check if the player's faction corresponds to the faction number you renseigned.
If it does, get the datas of the player with a usual cache_get_field_content(_int/_float)
If it doesn't, simply use "continue;" to skip this value of the number then check the next one.
Good luck.
Posts: 132
Threads: 42
Joined: Jun 2012
Reputation:
0
Its ok for me. But its not good. Its list only the online players who in the faction. I would to list all player (include offline) who in the faction
Posts: 864
Threads: 57
Joined: Jan 2013
Reputation:
0
Edited, sorry.
I use "uid", which stands for "unique id", because it's the system I use to see, and the system I use.
Use a random at register to create and assign the number to the player, then use it instead of the player's name to do more things than using name.