Problem. Loop through alphabet letters..
#5

If you want to increment the letters through their respective ASCII code (see this list: http://www.asciitable.com/ ), you need to use an integer value and wrap the character in single quotes.

pawn Код:
public OnFilterScriptInit()
{
    new Literka = 'A';
   
    for( ; Literka != 'Z'; Literka++)
    {
        printf("Char: %c - Decimal: %d", Literka, Literka);
    }
}
Reply


Messages In This Thread
Problem. Loop through alphabet letters.. - by LetsOWN[PL] - 09.10.2011, 08:37
Re: Problem. Loop through alphabet letters.. - by GrimR - 09.10.2011, 09:09
Re: Problem. Loop through alphabet letters.. - by Karlip - 09.10.2011, 09:15
Re: Problem. Loop through alphabet letters.. - by GrimR - 09.10.2011, 09:55
Re: Problem. Loop through alphabet letters.. - by Vince - 09.10.2011, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)