Raised This Month: $ Target: $400
 0% 

get_players/cs_get_user_team command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Revelation
Junior Member
Join Date: Jan 2005
Old 01-25-2005 , 18:46   get_players/cs_get_user_team command
Reply With Quote #1

Code:
***for (j=1; j<=3; j++)     {         num_to_str(j,sTemp,1)         get_players(sPlayers, iPlayerCount,"ce",sTemp)***         for (i=0; i<iPlayerCount; i++)         {             uid = sPlayers[i]             get_user_info(uid,"name",sName,31)             get_user_authid(uid,sSteamID,31)             sLong=""             add(sLong,255,sName)             add(sLong,255,"  ")             add(sLong,255,sSteamID)             add(sLong,255,"^n")             client_print(id,print_console,sLong)             }         }     }
Im trying to get a function to list everybodys SteamID's in the server. I want it so it does a team at a time, terrorist, ct and then spectaters. Just so when its printed its easy to check the enemy teams id's etc. What happens is that it compiles fine, it just doesn't display anyones steamID's on the server. I have tried it without splitting the steamids up by team and it worked. But i then added more code, specifically inbetween the asterisks - i believe the error lies in there somewhere. I just cant figure out whats up.
Revelation is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode