Novak Posted February 25, 2014 Share Posted February 25, 2014 (edited) null Edited February 25, 2014 by novak80 Link to comment Share on other sites More sharing options...
Isolate Posted February 25, 2014 Share Posted February 25, 2014 (edited) null no comprende? sorry if i dont understand or something.... //work out how many ints you have than string[] ItemNames = new string[] {"one", "two", "three"}; int amount = ItemNames.length; int[] ItemValues = new int[amount]; for(int counter = 0; counter < ItemValues.length; counter++){ ItemValues[counter] = lookup(ItemNames[counter]); } then later just call the prices int blah; blah = ItemValue[requiredvalue] * amount of stuff; Edited February 25, 2014 by Isolate Link to comment Share on other sites More sharing options...