ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1060

Info All Players Name

by Cayman_-Modz - 04-07-2019 - 02:00 PM
#1
hello, I'm trying to show you the names of all the players in a row. the code works but one thing is missing to put them in order because they are attacked. help me??


Code:
(int i = 0; i < 16; ++i) {
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(i)) {
char* name = PLAYER::GET_PLAYER_NAME(i);
char Info[50];

snprintf(Info, sizeof(Info), "1 : %s", name);
drawText(Info, 4, 0,0, 0.3f, 0.4f, 255, 255, 255, 250, false);
}
}
Reply

Users browsing: 3 Guest(s)