Permission to write 3 numbers, rest of it censured.
#2

OnPlayerText:

pawn Код:
new numbers,
    pos;

while(text[pos])
{
    if('0' <= text[pos] <= '9')
    {
        if(numbers == 3)
            text[pos] = '*';
        else
            numbers++;
    }
    pos++;
}
Not tested, but should work.
Reply


Messages In This Thread
Permission to write 3 numbers, rest of it censured. - by Whizion - 11.11.2010, 13:08
Re: Permission to write 3 numbers, rest of it censured. - by rs.pect - 11.11.2010, 13:11
Re: Permission to write 3 numbers, rest of it censured. - by JaTochNietDan - 11.11.2010, 13:17
Re: Permission to write 3 numbers, rest of it censured. - by Whizion - 11.11.2010, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)