19.06.2017, 15:29
(
Последний раз редактировалось IllidanS4; 19.06.2017 в 16:02.
)
Quote:
I want what day I already have to explain to you that the bug is in the function GetPlayerName, probably kurta999 understood me.
|
Why hasn't this been spotted before? Because the packedness of a string is determined by the first character in the string, and so far all character names tested (latin with diacritics) apparently didn't start with a non-ASCII letter, thus the string was recognized as unpacked by all routines, and therefore they ignored the redundant FFFFFFs. Nice bug you've found!
Fortunately, it is possible to fix this with a simple function:
Код:
stock NormSignedCharString(string[]) { for(new i = 0; string[i]; i++) { string[i] &= 0xFF; } }