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
 1524

THIS NAME PLAYERS CAN WORK

by EMILG0NZA - 12-16-2019 - 08:37 PM
#1
SO THIS IS MY CODE TO DETECT ALL THE PLAYERS ON LOBBY

Code:
if (PLAYER::GET_PLAYER_NAME(i)) {
char buf[100];
Snprintf(buf, sizeof(buf), "~b~%s", name);
DrawText(buf, 4, 0.07f, 0.0299406f + (index * 0.025), 0.52f, 0.57f, 255, 255, 255, 200, 0);
index++;

}
AND YES I HAVE
for (int i = 0; i < 18; i++) AND  int index = 0; :D
Disc = 0xemiil
Reply
#2
there is better ways to do it but nice work
Reply
#3
(12-17-2019 - 06:09 PM)Unbound Wrote:
Code:
#define ITER_PLAYERS for(auto i = 0; i < 18; i++)

VOID DisplayPlayers() { ITER_PLAYERS { AddTextOption(false, PLAYER::GET_PLAYER_NAME(i)); } }
Thanks Man :D
Disc = 0xemiil
Reply
#4
(12-17-2019 - 04:09 PM)Venom_Modz Wrote: there is better ways to do it but nice work
It dosent work u can help me out?
Disc = 0xemiil
Reply
#5
(12-16-2019 - 08:37 PM)FeetForFree Wrote: SO THIS IS MY CODE TO DETECT ALL THE PLAYERS ON LOBBY

Code:
if (PLAYER::GET_PLAYER_NAME(i)) {
char buf[100];
Snprintf(buf, sizeof(buf), "~b~%s", name);
DrawText(buf, 4, 0.07f, 0.0299406f + (index * 0.025), 0.52f, 0.57f, 255, 255, 255, 200, 0);
index++;

}
AND YES I HAVE
for (int i = 0; i < 18; i++) AND  int index = 0; :D

Only beginner
[Image: eZYKdLc.png]
Reply
#6
(12-28-2019 - 09:51 AM)Venom_Modz Wrote: What does it do just not display everybody?
NOP
Disc = 0xemiil
Reply
#7
Do What UNBOUND Said Its Clean And Simple. No Need For The All The Extra Code In Your Func..
2021 Best Be Better Then 2020
Reply
#8
use it from unbound its working
Reply
#9
void funcion()
{
for (int i = 0; i < 16; i++) {
char buf[100];
Snprintf(buf, sizeof(buf), "All Player Names Is: ~b~%s/n", PLAYER::GET_PLAYER_NAME(i));
DrawText(buf, 4, 0.07f, 0.0299406f + (index * 0.025), 0.52f, 0.57f, 255, 255, 255, 200, 0);
index += 1;
}
}
Reply
#10
(12-30-2019 - 11:05 AM)Alex2019 Wrote: void funcion()
{
for (int i = 0; i < 16; i++) {
char buf[100];
Snprintf(buf, sizeof(buf), "All Player Names Is: ~b~%s/n", PLAYER::GET_PLAYER_NAME(i));
DrawText(buf, 4, 0.07f, 0.0299406f + (index * 0.025), 0.52f, 0.57f, 255, 255, 255, 200, 0);
index += 1;
}
}
Thx
Disc = 0xemiil
Reply

Users browsing: 2 Guest(s)