01.06.2015, 11:12
Hey all,
now the code is:
but I have warning N224 :
The line with the warning, the problem is in this -> strcat(delimiter, ",")
now the code is:
Код:
stock IntegerWithDelimiter(integer, delimiter[] = ",") { new string[16], count; format(string, sizeof(string), "%d", integer); for(new i = strlen(string) - 1; i > 0; --i) { Line 339: if(strlen(delimiter) != 1) strdel(delimiter, 0, strlen(delimiter)), strcat(delimiter, ","); if(++count == 3) { strins(string, delimiter, i, sizeof(string)); count = 0; } } return string; }
Код:
D:\Program Files\Rockstar Games\GTA San Andreas\server\pawno\include\bgedition.inc(339) : warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")