Case needs to be const
#1

Hi!
I have this:
Код:
	switch(objectid) {
	case GateObject[0]: {
	if(GateOpened[0] == true) {
	MoveObject(GateObject[0], -48.768456, 27.114319, 1.604109, 3.5);
	GateOpened[0] = false;
	}
	}
       }
An error pop up saying that must be a constant expression; assumed zero
Is it possible to get here a constant value, if the objectid of GateObject[0] is gotten in OnGamemodeInit?
Reply


Messages In This Thread
Case needs to be const - by potato - 19.06.2009, 16:55
Re: Case needs to be const - by dice7 - 19.06.2009, 18:01
Re: Case needs to be const - by jonesy - 19.06.2009, 18:02
Re: Case needs to be const - by potato - 19.06.2009, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)