unkown opcode, cannot cast nil to float?!

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

unkown opcode, cannot cast nil to float?!

Post by Aprop »

Code: Select all

	local.r = randomint(2) (maps/dm/m3l1d.scr, 580)
	local.r = ^

^~^~^ Script Error: Cannot cast 'NIL' to int

wait local.r (maps/dm/m3l1d.scr, 581)
^

^~^~^ Script Error: Cannot cast 'NIL' to float

file 'maps/dm/m3l1d.scr'

********************
ERROR: unknown opcode: 118
What the hell is it?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Re: unkown opcode, cannot cast nil to float?!

Post by jv_map »

Aprop wrote: What the hell is it?
Strange :)

Maybe try:
local.r = randomint 2
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I'd look for the reason earlier in the script. To me it looks like you did something so messed up in the script that you drove the scripting engine nuts.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply