Skip to content

Conversation

@NikitaFoxze
Copy link

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant