Thread: Trade System
View Single Post
  #11  
Old 11-26-2009, 06:40 PM
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 Switch View Post
For some reason, doing things like for (temp.pie : this.allpies) give me problems in some cases (I can't list one off the top of my head), so I tend not to do that if it's not for allplayers or players, since it's always worked for those.
Most likely you're trying to remove things

PHP Code:
for (temp.npc player.level.npcs) {
  
npc.destroy();

Things like that can cause trouble because they're removing from the array. Similar things happen when removing weapons from players.
__________________
Reply With Quote