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(1, this.x+0.5, this.y-0.05, "Arabic", "b", this.text);
  
changeimgzoom(1, 1);
  
changeimgcolors(1, 1, 1, 1, 1);
  
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.p = 0; temp.p < playerscount; temp.p ++)
        {
        
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