function should return a value? But i use return..
#5

Quote:
Originally Posted by faxxe
Посмотреть сообщение
Код:
	if(bool:value == true && count == 1)//Returns the ID of the remaining team
	return i;
}
means:

Код:
	if(bool:value == true && count == 1)
	{
		return i;
	}
	// no return if false
}
if value is false or count is not 1 there is no return
Reply


Messages In This Thread
function should return a value? But i use return.. - by faxxe - 21.03.2017, 15:34
Re: function should return a value? But i use return.. - by SyS - 21.03.2017, 15:41
Re: function should return a value? But i use return.. - by faxxe - 21.03.2017, 15:57
Re: function should return a value? But i use return.. - by SyS - 21.03.2017, 17:00
Re: function should return a value? But i use return.. - by OneDay - 21.03.2017, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)