View Single Post
  #3  
Old 03-16-2010, 11:08 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
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])[0in 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.0temp.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.

Last edited by Cubical; 03-16-2010 at 02:19 PM.. Reason: Added more detail about my problem
Reply With Quote