13.12.2018, 14:06
Quote:
Using sscanf (u param) it will most likely to get the result which is in lower IDs, lets say you are searching 'Ada` and there are two players with name starting from Ada (likely Adax(1) and Aday(11), then it will return the name with lower id or the name which comes first in the loop search, i.e. Adax(1)
|
Quote:
No it will not, It would have if the player name would have been JohnTest. sscanf dosent search in between name, it starts from the beginning of the name.
|
Quote:
Users can now optionally return an ARRAY of users instead of just one. This array is just a list of matched IDs, followed by "INVALID_PLAYER_ID". Given the following players:
Код:
0) ****** 1) [CLAN]****** 2) Jake 3) Alex 4) Hass pawn Код:
Код:
id = 0 id = 1 Too many matches Код:
id = 0 id = 1 Код:
No matching players found. When combined with "U" and returning the default, the first slot is always exactly the default value (even if that's not a valid connected player) and the next slot is always "INVALID_PLAYER_ID". Note also that user arrays can't be combined with normal arrays or enums, but normal single-return user specifiers still can be.
pawn Код:
|
EDIT: the smh reply made me to answer this 8 months old thread, didn't notice