ehm... i dunno, just a simple question.
i just wondered would this start with client_print(0,... or client_print(1,...?
Code:
|
It would start with 0.
client_print(0, whatever) prints to all clients (IIRC). Player indices are 1-32. Also, note that if there are 5 players on the server, it doesn't mean that they will have the indices 1, 2, 3, 4, and 5. If there are 6 players with 1,2,3,4,5,6 and then the one with 3 leaves, there are 5 players with 1,2,4,5,6 now... You get the idea. to get the indices of all players, use get_players. |
thank you PM
Edit: this would work, right? Code:
|
Quote:
|
why not just do
Code:
|
im not using it for client_cmd
and what i meant with the post was is this gonna show to all players first and then continue to player 1 player 2.......? for (new i = 0; i < playerCount; i++ ) |
Yes, i is incremented after the first loop run
|
| All times are GMT -4. The time now is 20:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.