Can't add more then one value to array(solved)
Posted: Sat Mar 14, 2015 7:40 am
WIth this one I can add more then one value to array.
----------------------
def init
@v1 = []
end
def event i,v
v2 = @ins[0]
if i == 1
@v1.push v2
end
watch "v1:",@v1
end
-----------------------
But with this I can't code the same but v1 is local. Does it possible make it with local array?
------------------------
def init
@v1 = []
end
def event i,v
v2 = @ins[0]
if i == 1
@v1.push v2
end
watch "v1:",@v1
end
----------------------
def init
@v1 = []
end
def event i,v
v2 = @ins[0]
if i == 1
@v1.push v2
end
watch "v1:",@v1
end
-----------------------
But with this I can't code the same but v1 is local. Does it possible make it with local array?
------------------------
def init
@v1 = []
end
def event i,v
v2 = @ins[0]
if i == 1
@v1.push v2
end
watch "v1:",@v1
end