sscanf icon indicating copy to clipboard operation
sscanf copied to clipboard

Fixes

Open NikitaFoxze opened this issue 2 months ago • 0 comments

  • Added hook SSCANF_SetPlayerName.
  • The letters u, q, r have been updated to account for the case and length of the player/bot name. It works when using MATCH_NAME_SIMILARITY = -1.0 (default).

Deleting (comment) SscanfWarning(2, "String buffer overflow."). He is not needed. When I use it, for example, in a command:

new targetNickName[MAX_PLAYER_NAME + 1];
sscanf(params, "s[*]", MAX_PLAYER_NAME + 1, targetNickName))

If the player enters a string length greater than the nickname (MAX_PLAYER_NAME + 1), it outputs this string in the console.

NikitaFoxze avatar Oct 29 '25 20:10 NikitaFoxze