View Single Post
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 10-31-2010 , 00:45   Re: [ANY] Hide Name
Reply With Quote #4

I just happened to stumble on this, and wanted to check the source out of curiosity (already had something similar a while back.)

Anyway, this doesn't really matter since all clients should be included for this, but you're not properly looping the players.

PHP Code:
            for(new 1<= playersNumi++)
            {
                if(
IsClientInGame(i))
                {
                    
GetClientName(isUserNamesizeof(sUserName)); 
playersNum is the amount of players it's being sent to. Their indexes are stored in the "const players[]" array.

So that code should look more like:

PHP Code:
            for(new 0playersNumi++)
            {
                if(
IsClientInGame(players[i]))
                {
                    
GetClientName(players[i], sUserNamesizeof(sUserName)); 
Just thought you should know, to avoid running into potential problems.
AltPluzF4 is offline