05.07.2011, 10:47
Ye, using GetIdFromName with sscanf makes absolutely no sense. When a (partial) playername is passed to sscanf, it automatically returns the player id (or INVALID_PLAYER_ID if not found). And Garsino: the r specifier works the same as the u specifier, with the exception that is does not accept NPC names.
Should work. Then use 'id' throughout your code and use GetPlayerName to get the name of the player.
pawn Код:
if (sscanf(params, "rs[100]", id, message))

