Why is this not working in Fuze
-
Hey why i cant say test=[""]
-
? What are you trying to do, man?
-
@petermeisenstein What seems to be the problem? Have just written the program below and it works fine:
name = [ "apple", "orange", "banana" ] test = [""] for i = 0 to len( name ) loop clear() test[i] = name[i] print(test[i]) update() sleep( 2 ) repeat
Did you mean to empty the array? If so, then use:
test = []
If you try to access test[0] after doing the above you will get an "Array index out of bounds" as we have just cleared it.
I don't think you need the quotes ( " " ) in your array, even if it will hold strings. Arrays seem to be dynamic in size and type. So this also works:
name = [ "apple", "orange", 1 ]
-
@spt-games Okay so yeah i can let it empty thanks