16.06.2017, 02:33
Hello, I am new in pawno coding. My question is how this can happen;
it outputs the whole text. not the first character but when I try something like;
it lowers only the first character. it confuses me like really much. as you can see in prints output, text[0] means all of the text but tolower lowers only the first character.
Also, I read tolower function's info on wiki. It says;
So how can it understand I mentioned the first character of that string? text[0] is all of the text, not only the first character. It should give errors in my view.
can somebody help?
Code:
public OnPlayerText(playerid, text[]) { print(text[0]); return 1; }
Code:
public OnPlayerText(playerid, text[]) { text[0] = tolower(text[0]); return 1; }
Also, I read tolower function's info on wiki. It says;
Quote:
This function changes a single character to lowercase. |
can somebody help?