Question Help: Caps letter - 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)
+--- Thread: Question Help: Caps letter (
/showthread.php?tid=360626)
Question Help: Caps letter -
Speed++ - 18.07.2012
OnPlayerText
PHP код:
new
i;
while (text[i++])
{
if ('A' <= text[i] <= 'Z') text[i] |= 0x20;
}
So the message with caps letters activated is shown:
Example text... etc
but if I want to show all of the letters are disabled?
example text... etc
Re: Question Help: Caps letter -
Speed++ - 18.07.2012

??
Re: Question Help: Caps letter -
L.Hudson - 18.07.2012
It's actually hard to understand what you are asking be more specifiec
Re: Question Help: Caps letter -
IstuntmanI - 18.07.2012
Код:
for( new i = 0; i < strlen( text ); i ++ )
tolower( text[ i ] );
^ Use this code before you send the text.
Re: Question Help: Caps letter -
Speed++ - 18.07.2012
"tolower" ?
PHP код:
new
i;
while (text[i++])
{
if ('A' <= text[i] <= 'Z') text[i] |= 0x20;
}
this is my code.. and i ask.. how to disable also the first caps letter
Re: Question Help: Caps letter -
IstuntmanI - 18.07.2012
Quote:
Originally Posted by Speed++
"tolower" ?
PHP код:
new
i;
while (text[i++])
{
if ('A' <= text[i] <= 'Z') text[i] |= 0x20;
}
this is my code.. and i ask.. how to disable also the first caps letter
|
I don't understand what you want. Try with ****** translate, lol.
Re: Question Help: Caps letter -
Speed++ - 18.07.2012
Quote:
Originally Posted by costel_nistor96
I don't understand what you want. Try with ****** translate, lol.
|
PHP код:
new
i;
while (text[i++])
{
if ('A' <= text[i] <= 'Z') text[i] |= 0x20;
}
this code disable all caps letter in the chat... except the first letter... how can I do to disable them all?
Re: Question Help: Caps letter -
IstuntmanI - 18.07.2012
I already gave you the code, change your code with mine.
Re: Question Help: Caps letter -
Speed++ - 18.07.2012
I tested your code.. and don't work...
Re: Question Help: Caps letter -
Speed++ - 19.07.2012
Bump....