View Single Post
  #5  
Old 08-04-2011, 04:27 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Astram View Post
I removed onCreated nothing different
The issue is in the loop, not in onCreated.

PHP Code:
for (temp.0temp.playerscounttemp.++) 
        { 
        
this.lineup NULL
        
this.lineup.add(players[(@temp.p)].nick); 
        
player.chat this.lineup
        
this.set "Lineup: "@this.lineup
      } 
You're setting this.lineup to null then adding the player to it. The null assignment should be before the loop.
__________________
Reply With Quote