07.02.2018, 15:14
The "lost element" is the integer in the ASCII table.
Type: "/test commandtest.2 65" and you will have "cAmmandtest.2". Why? The character 'A' (or the "lost character") is the second element of params which is an array.
I'll be more explicit:
and you replace 'o' by the integer. 65 mean A in ASCII table. That's why you get that.
Make two separate variable instead of reusing params.
Type: "/test commandtest.2 65" and you will have "cAmmandtest.2". Why? The character 'A' (or the "lost character") is the second element of params which is an array.
I'll be more explicit:
Код:
params[] = {'c', 'o', 'm', 'm', 'a', 'n', ...
Make two separate variable instead of reusing params.