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.