Convert to lowercase?
#1

How to i convert something like AA9909EO to aa9909eo automatically in pwn? Basically turn uppercase letters in a string to lowercase.
Reply
#2

Not possible, you could just re-write it, or by using replace function.
Reply
#3

Loop through entire string with tolower(). Though if you're talking color codes then that won't be necessary.
Reply
#4

Example code:
pawn Код:
new Test[64] = "AA9909EO";
public OnPlayerConnect(playerid)
{
    for(new i;i<strlen(Test);i++)
    {
    Test[i] = tolower(Test[i]);
    }
SendClientMessage(playerid,-1,Test); // send you a message (aa9909eo)
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)