Hello guys i want to create a dialog that shows connected players (well it is not connected players but this is an example), the thing i want to make is loop through players and write the connected players into a List dialog every player on it's own list
the looping is easy i know but how do you put each player in a specific listitem ?
Thanks in advance.
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
for + IsPlayerConnected + strcat. Try to do something on your own, and come here when you'll get stuck on some problem. Also - isn't tab doing that already?
(You might run out of stack space due to really long string, look up malloc)
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
lamarr - MAX_PLAYER_NAME is 24 (you should do +1 due to \0). If you have more than 22 players on server, you just got youself overflow
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Oh, didn't see the fstring. Still - string is only 511+1 chars long.
Posts: 239
Threads: 33
Joined: Aug 2011
Reputation:
0
Hey.. I donґt know, how much is max players on his server. Acknowledge, 512 chars variable is too small
Thanks guys for all of your responses and the idea is to make a list for frozen players, i just want a basic concept of how it is done.