20.07.2014, 06:10
When using q, r or u as specifiers, no matter what I do they will not search properly for a name.
I have a command that allows admins to give money to players, using the specifier "i" for money and "r" for player name or ID. Using an ID works fine but putting in a name is where it falls apart.
If I join my server as "AdmiralSpeedy" and then on my other PC join as "AdmiralSpeedy2", running the command with or without <MATCH_NAME_PARTIAL=0> and providing the name "Admiral", always gives "AdmiralSpeedy" the money. That's fine, but now if I provide the name "AdmiralSpeedy2", is still gives "AdmiralSpeedy" the money even though the two don't match. Now, if I join as "Test" on the second PC and provide the command "Test", or even "T", it works fine.
This started happening to me a long time ago when I updated sscanf years ago. Because of this issue, I've had to resort to simply requesting just an ID as an integer, which works but it would be nice to be able to use a name or and ID.
I have a command that allows admins to give money to players, using the specifier "i" for money and "r" for player name or ID. Using an ID works fine but putting in a name is where it falls apart.
If I join my server as "AdmiralSpeedy" and then on my other PC join as "AdmiralSpeedy2", running the command with or without <MATCH_NAME_PARTIAL=0> and providing the name "Admiral", always gives "AdmiralSpeedy" the money. That's fine, but now if I provide the name "AdmiralSpeedy2", is still gives "AdmiralSpeedy" the money even though the two don't match. Now, if I join as "Test" on the second PC and provide the command "Test", or even "T", it works fine.
This started happening to me a long time ago when I updated sscanf years ago. Because of this issue, I've had to resort to simply requesting just an ID as an integer, which works but it would be nice to be able to use a name or and ID.