Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.