Page 1 of 1
how to assign a variable or any value to array variable?
Posted:
Fri Oct 14, 2011 5:11 pm
by Agusstosus15
how to assign a variable or any value to array variable
i declared variable i[2] integer global
in code i [1]=3 why it cause error?
Re: how to assign a variable or any value to array variable?
Posted:
Fri Oct 14, 2011 5:15 pm
by SuperSonic
Are you using script to declare the variable?
EG:
- Code: Select all
int i[2];
If not then try putting that code in your global code
Re: how to assign a variable or any value to array variable?
Posted:
Fri Oct 14, 2011 5:45 pm
by Agusstosus15
i'm using variables bar to declare
Re: how to assign a variable or any value to array variable?
Posted:
Fri Oct 14, 2011 5:56 pm
by Agusstosus15
ok i get it, array is counting from zero , lol:)
Re: how to assign a variable or any value to array variable?
Posted:
Fri Oct 14, 2011 6:40 pm
by SuperSonic
So it works now?
Re: how to assign a variable or any value to array variable?
Posted:
Fri Oct 14, 2011 6:44 pm
by Agusstosus15
yep
thank you
Re: how to assign a variable or any value to array variable?
Posted:
Fri Oct 14, 2011 7:52 pm
by SuperSonic
No problem