Stock Warning
#3

Quote:
Originally Posted by zPain
Посмотреть сообщение
Both warnings are pretty self-explanatory. Do you mind showing what's inside the for loop?
Warnings are pretty clear but i still can't get rid of them. Or should i have used a do-while loop

Код:
stock stockname(param)
{
	new i=1, mp=4, pp=2, total=0;
	for(;;i++)
	{
	    total += (i * mp) + pp;
	    if(total >= param)
		    return i;
	}
	//return -1;
}
Reply


Messages In This Thread
Stock Warning - by Ilhan - 18.02.2016, 14:17
Re: Stock Warning - by zPain - 18.02.2016, 14:28
Re: Stock Warning - by Ilhan - 18.02.2016, 14:39
Re: Stock Warning - by Gammix - 18.02.2016, 14:43
Re: Stock Warning - by Ilhan - 18.02.2016, 14:51
Re: Stock Warning - by Nero_3D - 18.02.2016, 16:32
Re: Stock Warning - by Ilhan - 18.02.2016, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)