Simple ERROR
#2

You don't even have quotes. Use format to format your string. Example,

pawn Код:
public OnPlayerText(playerid, text[])
{
    new
        result[128];
    format(result, sizeof(result), "%s", text);

    for(new i = 0, j = strlen(result); i < j; i++)
    {
        if('0' <= result[i] <= '9')
        {
            result[i] = '*';
        }
    }

    SendPlayerMessageToAll(playerid, result);
    return 0;
}
Reply


Messages In This Thread
Simple ERROR - by Clergy - 30.07.2014, 16:19
Re: Simple ERROR - by Abagail - 30.07.2014, 16:27
Re: Simple ERROR - by Clergy - 30.07.2014, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)