Check characters
#1

Hello,
How can I check if string contains more than 3 dots?
This is something similar, but I don't know how to make it to count dot symbols:
pawn Код:
new count;
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        switch (string[i])
        {
            //How to count '.' symbols here?
        }
    }
Reply
#2

pawn Код:
if(string[i] == '.') count++ // notice single quotes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)