First letter sentence
#1

Hi. What function do I change the first letter in a sentence to a chat?
Reply
#2

What do you mean?
Reply
#3

I want the script itself started with a big sentence, if someone will don't it.

Sorry for bad english -_-
Reply
#4

Erhm I can't actually understand you.
Try showing an example.
Reply
#5

Suppose someone says "hello world". Chat displays "Hello world"
Reply
#6

pawn Код:
public OnPlayerText(playerid, text[])
{
    text[0] = toupper(text[0]);
    return 1;
}
Reply
#7

How do I add a dot at the end? If it does not exist
Reply
#8

Код:
if(text[strlen(text) - 1] != '.')
{
	text[strlen(text)] = '.';
}
Not tested.
Reply
#9

Not working
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)