how to check if there's a CHAR inside a string?
#2

pawn Код:
for(new i = 0; i < strlen(string); i++)
{
    if(string[i] == '@')
    {
        //The string contains @.
    }
    else //The string doesn't contain @.
}
Reply


Messages In This Thread
how to check if there's a CHAR inside a string? - by PaulDinam - 22.01.2013, 13:54
Re: how to check if there's a CHAR inside a string? - by [XST]O_x - 22.01.2013, 13:56
Re: how to check if there's a CHAR inside a string? - by Babul - 22.01.2013, 14:24
Re: how to check if there's a CHAR inside a string? - by PaulDinam - 22.01.2013, 14:36
Re: how to check if there's a CHAR inside a string? - by EpicNinja - 22.01.2013, 14:39
Re: how to check if there's a CHAR inside a string? - by PaulDinam - 22.01.2013, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)