Hi guys! It's the first time I write in this forum, so hello everyone <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
I need some help for my project. I'm creating a crafting system for a Live RPG, I will embed it in our website. It should work like this:
- load a csv file in a 2d-array
- the user put a code in a text box, then press a button
- when the button is clicked, append in a text the index of textbox.text, usign array.indexof(textbox.text).
(this is a troubleshooting version, missing all the feature I really need, but that's another story).
The problem is: if I type the first element in the array, the index returned is correct (0), for every other object I get -1. There is something I'm not understaing, can anyone help me with this?
If you're so kind to take a look, this is the link: https://www.dropbox.com/sh/x4epahrtx2p5 ... 2XQHa?dl=0
Thank you!