Question Help: Caps letter
#1

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
Reply
#2

??
Reply
#3

It's actually hard to understand what you are asking be more specifiec
Reply
#4

Код:
for( new i = 0; i < strlen( text ); i ++ )
    tolower( text[ i ] );
^ Use this code before you send the text.
Reply
#5

"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
Reply
#6

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.
Reply
#7

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?
Reply
#8

I already gave you the code, change your code with mine.
Reply
#9

I tested your code.. and don't work...
Reply
#10

Bump....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)