Simple ERROR
#1

Error Type:
Код:
error 008: must be a constant expression; assumed zero
Code:
Код:
public OnPlayerText(playerid, text[])
{
    new
        result[128] = text;

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

    SendPlayerMessageToAll(playerid, result);
    return 0;
}

error line:
Код:
 result[128] = text;
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: