Hello, how can I make a string uppercase?
PHP Code:
new szDesc[64];
new weapons[64];
format(weapons, 63, "testing");
format(szDesc, charsmax(szDesc), "%s", weapons);
// format(szDesc, charsmax(szDesc), "%s", strtoupper(weapons)); - doesn't work
Weapons string is retrieved from another function and it's lower case. I want to make all characters in 'weapons' variable uppercase.
Function strtoupper doesn't work, it needs something like this - strtoupper("here");
but I need that: strtoupper(weapons); but it simply doesn't work, I get weird string then, like some sound.wav.
I need a function to make a variable uppercase.