Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
You can have two players with the same name, once some case is different, thus [xG]Max_Vido and [xg]max_vido. If you want them to appear as the same, change ignorecase to true in the strcmp function you use to do the check.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
I see you're already using foreach (don't know what the useless IsPlayerConnected check is for, though), so why not use sscanf as well? You know it has the functionality to do this, right?
Posts: 1,022
Threads: 207
Joined: Aug 2011
Reputation:
0
Problem already fixed, what you mean also use sscanf? I use sscanf for commands.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Sscanf is not meant to be solely used in commands. I don't know why so many people presume it is. Sscanf is a string splitting routine and can be used anywhere. Read the sscanf thread and check out the 'u' or 'r' parameter.