Using strfind
#3

So, something like...

pawn Код:
new lines = 0;
                    for( new i; i < 255; i++)
                    {
                        new Str[128];
                        format(Str, sizeof(Str), DIALOG_TEXT_REASONS);
                        if(strfind(Str, "\n", true) != -1) { lines++; }
                        printf("lines: %d", lines);
                    }
Should work? (Very crude)
Reply


Messages In This Thread
Using strfind - by 2KY - 06.02.2012, 23:55
Re: Using strfind - by IceCube! - 06.02.2012, 23:58
Re: Using strfind - by 2KY - 07.02.2012, 00:00

Forum Jump:


Users browsing this thread: 1 Guest(s)