Thread: Array help
View Single Post
  #1  
Old 08-29-2011, 07:19 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Array help

This wont select the next variable in thiso.rights.
thiso.rights = Stick,Unstick,Jail,Stealth
can someone help me get this to work?
PHP Code:
function onKeyPressed(codekeyscancode) {
  for (
temp.0temp.thiso.rights.size(); temp.++) {
    
//[ 219
    //] 221
    //\ = 220,\,43
    
if (code == 219) {
      
//[
      
if (this.selected => thiso.rights[0]) {
        
this.selectedid temp.i;
        
this.selected thiso.rights[(@this.selectedid 1)];
        
UpdateText(this.selected);
      }
    }
    if (
code == 220) {
      
//\
      
if (this.selected =< thiso.rights.size() - 1) {
        
this.selectedid temp.i;
        
this.selected thiso.rights[(@this.selectedid 1)];
        
UpdateText(this.selected);
      }
    }
  }

__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote