Here's another question because I don't want to spam up the forums for something that is dumb.
I currently have this in a for loop that I know works;
PHP Code:
this.sectionarray = "weapons","blah";
if (clientr.item.(@temp.itemarray[temp.i])[0] in this.sectionarray){
//allow
player.chat = "yay i'm in";
} else player.chat = "/faceroll keyboard";
I know the clientr. and this.sectionarray are working properly but for some reason it just doesn want to work.
I have also tried this with no more luck than I had with the previous one. this isn't exactly how it looks but it shows more of what i'm doing and how i'm acquiring the variables in case anyone was wondering.
PHP Code:
temp.itemarray = getstringkeys("clientr.item.");
this.sectionarray = "weapons","";
for (temp.i = 0; temp.i < temp.itemarray.size();temp.i++){
temp.itemcheck = clientr.item.(@ temp.itemarray[temp.i])[0];
if (temp.itemcheck in this.sectionarray){
player.chat = "omg finally";
} else return -1;
}
edit2: 3 hours of messing around with this and still nothing ;[, it's probably something stupid.