[ZScript]return bool/int/float not recognized

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [ZScript]return bool/int/float not recognized

Re: [ZScript]return bool/int/float not recognized

by Graf Zahl » Sun Nov 06, 2016 6:22 am

Yeah, bool was missing.

Re: [ZScript]return bool/int/float not recognized

by Major Cooke » Sun Nov 06, 2016 6:18 am

Agreed. Int works, however. I've already replaced them all to be direct instead.

Re: [ZScript]return bool/int/float not recognized

by Graf Zahl » Sun Nov 06, 2016 6:17 am

That cast is even totally unnecessary because true is already bool, but it should work.

Re: [ZScript]return bool/int/float not recognized

by Major Cooke » Sun Nov 06, 2016 6:14 am

Code: Select all

Class dumm : CustomInventory
{
	States
	{
	Pickup:
		TNT1 A 0
		{
			return bool(true);
		}
		Stop;
	}
}
Bool isn't recognized.

Re: [ZScript]return bool/int/float not recognized

by Graf Zahl » Sun Nov 06, 2016 6:09 am

I asked what did that not work here. If something you did produced an error I at least need to see it to decide whether I need to change something.

Re: [ZScript]return bool/int/float not recognized

by Major Cooke » Sun Nov 06, 2016 5:33 am

Eh nevermind. I just went through and wound up replacing them all with true/false etc. They are deprecated after all.

Re: [ZScript]return bool/int/float not recognized

by Graf Zahl » Sun Nov 06, 2016 5:06 am

Repeating above message. What's up here?

Re: [ZScript]return bool/int/float not recognized

by Graf Zahl » Fri Nov 04, 2016 5:02 pm

Please post an example of what doesn't work.

[ZScript]return bool/int/float not recognized

by Major Cooke » Fri Nov 04, 2016 3:42 pm

Much like the state problem. They error out instead of printing a warning.

Top