Thread: small problem
View Single Post
  #8  
Old 06-10-2009, 11:46 AM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Maybe better if you did this

HTML Code:
function onPlayerEnters() {  
  this.array = {
      //Shop Names
    {"level1.nw", "level4.nw", "level3.nw"},
      //Descriptions
    {"Gun Shop", "Electrical Shop", "Adult Stall"}
  };
    //The index of the shop level in the array
  temp.index = this.array[0].index(player.level.name);
    //If the entry doesn't exist, don't continue
  if (temp.index == -1) return;

  this.message_title = this.attay[1][temp.index];
  setTimer(0.05);
}
Reply With Quote