Jump to content
Sign in to follow this  
zonekiller

sorting an array with numbers and objects

Recommended Posts

i have a rare problem but if it does happen it kills an important script in

-=ZKs BattleZone=-

somewhere inbetween alive object and <null object> a vehicle in an array can become a number.

ive tried many different checks to find if its an object and all fail if its a number

is there a simple way to find if a value is a number or object ?

ive noticed this in several arrays - as BZ mainly works with arrays

but it only kills a compile preprocessFile script.

Found a temp solution - spawn that part of the code so if it breaks it wont affect the main script

would like to find a better fix tho

Edited by Zonekiller

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  

×