Help: PrintToConsole() executing out of order
Here's the code (adapted from the sm_admins command):
Code:
public Action:Command_Users(client, args)Code:
] sm_users |
Re: Help: PrintToConsole() executing out of order
just do a single loop and check Connected and InGame
|
Re: Help: PrintToConsole() executing out of order
Welcome to the joys of UDP packets.
If order is important, use a timer to space out each line somewhat, or print all the data as one line (I think \n works..). |
Re: Help: PrintToConsole() executing out of order
I was testing with a nearly empty server. I guess I could throw the first 3 lines on a single command with the new line string (somehow didn't think of that before). Then put a timer between that and the users, then another timer before the final '-----...' string.
Will try that out. Edit: Adding the timers seems to work right. I put a 0.05 interval for the middle part, then a 0.10 for the end and it seems to work, except for when someone gets killed (reports to console) within that .1 second. |
Re: Help: PrintToConsole() executing out of order
That's odd. I've done output at the same size (or bigger) with no issues. That was even on a server far away from my location.
You must be on a poor or very busy network. |
| All times are GMT -4. The time now is 07:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.