01.05.2014, 06:36
Quote:
He wants to enter a part of name and gets a list with players that have that part to their name. Using sscanf - what Vince posted is the best way. The most common would be what Danyal posted with the exception that in the format function, the first argument should be "Playername" instead of "GetPlayerName(i, Playername, sizeof Playername)".
Your code loops without any reason to check if the number is between 0 and MAX_PLAYERS's value. |