Multiplication warnings
#1

Код:
new stolenMoney = 1, robChance = random(5);
switch(robChance) {
	case 	0: stolenMoney = 0;
	case 1..4: {
		stolenMoney * 1000 * robChance;
	}
}
The above code gives me a "expression has no effect" warning on the line "stolenMoney * 1000 * robChange" - why?
Reply


Messages In This Thread
Multiplication warnings - by jameskmonger - 26.07.2012, 19:45
Re: Multiplication warnings - by Jeffry - 26.07.2012, 19:49
Re: Multiplication warnings - by jameskmonger - 26.07.2012, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)