How to get server name ?
How to get server name ?
Could you show some example of code ? //Sorry for my bad english... |
Code:
|
Would get_user_name with an index of 0 also work?
|
No. That uses a different system of retrieving names.
|
Actually, the get_user_name native returns the string value of the hostname cvar if you pass an index which is lower than 1 or greater than 32.
Code:
(index < 1 || index > gpGlobals->maxClients) ? hostname->string : g_players[index].name.c_str() |
hmmm....didn't know that. I would have figured you would have just recieved a native error.
|
| All times are GMT -4. The time now is 20:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.