I made an array in the "global code"
- Code: Select all
int weapon[15];
there i made this
- Code: Select all
weapon[0]= 3 - round(rand(3));
so i want to make for every weapon another damage number.
but something goes wrong... I want to have a variable wich gets different when you have another weapon (weapon[0],weapon[1]....)
how can i do it?
can i out the variable in int?
when i try it , it makes the value 0 :S he beats "0" every time