View Single Post
  #1  
Old 08-04-2011, 03:54 AM
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
Helping with arrays in showtext

Well, I can't get this showtext to update to the array I want, the array should include multiple nicknames but it only shows one in the level.
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.set NULL;
}
function 
onUpdateText()
  {
  
showtext(1this.x+0.5this.y-0.05"Arabic""b"this.text);
  
changeimgzoom(11);
  
changeimgcolors(11111);
  
drawunderplayer;
  }
function 
onPlayerEnters()
  {
  
onTimeOut();
  }
function 
onTimeOut()
  {
  if (
this.set != NULL)
    {
    
this.text this.set;
    }
  else
    {
    
this.text "Lineup: ";
    }
  
onUpdateText();
  
setTimer(.5);
  }
function 
onPlayerChats()
  {
  if (
player.guild == "Events Team")
    {
    if (
player.chat == ":lineup")
      {
      for (
temp.0temp.playerscounttemp.++)
        {
        
this.lineup NULL;
        
this.lineup.add(players[(@temp.p)].nick);
        
player.chat this.lineup;
        
this.set "Lineup: "@this.lineup;
      }
    }
  }

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


Reply With Quote