Jump to content
Sign in to follow this  
Scud

Drop returning err

Recommended Posts

Ok I have 2 sqs files one with this

Quote[/b] ]_plane =_this select 0

;            shape             type     time life    pos        vel    rtate w  v  fric size colour        

drop ["cl_basic", "", "Billboard", 4, 5, [0,2,-6.4], [0,1,0.2], 0, 0.3, 0.4, 1, [2],[0,.2,.5,1],[0],1,1,"","",_plane]

and the other
Quote[/b] ]drop ["CL_basic", "", "Billboard", 4, 24, [0,2,-6.4], [0,2,0.2], 0, 0.5, 0.4, 1, [2,6,0.7],[1,.9,.9,1],[1,1,1],1,1,"","",_plane]

both of these return an err: type number expected ""

which I can't read coz its off the screen.

any1 got any idas as to why I am getting this err?? sad_o.gif

Share this post


Link to post
Share on other sites

the array in the middle of the three arrays is "an array of arrays". which means it has to be [...], [[...], [...], [...]], [...]. like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">drop ["cl_basic", "", "Billboard", 4, 5, [0,2,-6.4], [0,1,0.2], 0, 0.3, 0.4, 1, [2],[[0,.2,.5,1]],[0],1,1,"","",_plane]

drop ["CL_basic", "", "Billboard", 4, 24, [0,2,-6.4], [0,2,0.2], 0, 0.5, 0.4, 1, [2,6,0.7],[[1,.9,.9,1]],[1,1,1],1,1,"","",_plane]

Share this post


Link to post
Share on other sites

thanx, will try that

edited:

Works atreat,

thanx again

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×