First letter sentence - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: First letter sentence (
/showthread.php?tid=130542)
First letter sentence -
ErF - 27.02.2010
Hi. What function do I change the first letter in a sentence to a chat?
Re: First letter sentence -
¤Adas¤ - 27.02.2010
What do you mean?
Re: First letter sentence -
ErF - 27.02.2010
I want the script itself started with a big sentence, if someone will don't it.
Sorry for bad english -_-
Re: First letter sentence -
MenaceX^ - 27.02.2010
Erhm I can't actually understand you.
Try showing an example.
Re: First letter sentence -
ErF - 27.02.2010
Suppose someone says "hello world". Chat displays "
Hello world"
Re: First letter sentence -
-Davee- - 27.02.2010
pawn Код:
public OnPlayerText(playerid, text[])
{
text[0] = toupper(text[0]);
return 1;
}
Re: First letter sentence -
ErF - 27.02.2010
How do I add a dot at the end? If it does not exist
Re: First letter sentence -
ziomal432 - 27.02.2010
Код:
if(text[strlen(text) - 1] != '.')
{
text[strlen(text)] = '.';
}
Not tested.
Re: First letter sentence -
ErF - 27.02.2010
Not working