11.09.2016, 11:44
I've tried to hide IP's that are being mentioned ingame to prevent advertising,
Wrote a little code for it, however its returning the error
Its on the following piece of code.
The error is on the line where im making the variable :: new result[128] = text;
Wrote a little code for it, however its returning the error
Код:
error 008 : must be a constant expression; assumed zero
Код:
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; }