Little question :)
#6

Hey all,

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; 
}
but I have warning N224 :
Код:
D:\Program Files\Rockstar Games\GTA San Andreas\server\pawno\include\bgedition.inc(339) : warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")
The line with the warning, the problem is in this -> strcat(delimiter, ",")
Reply


Messages In This Thread
Little question :) - by bgedition - 31.05.2015, 15:34
Re: Little question :) - by Konstantinos - 31.05.2015, 15:58
Re: Little question :) - by Vince - 31.05.2015, 16:54
Re: Little question :) - by Konstantinos - 31.05.2015, 17:29
Re: Little question :) - by bgedition - 31.05.2015, 17:44
Re: Little question :) - by bgedition - 01.06.2015, 11:12
Re: Little question :) - by Konstantinos - 01.06.2015, 11:25
AW: Little question :) - by Kaliber - 01.06.2015, 11:26
Re: Little question :) - by bgedition - 01.06.2015, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)