View Single Post
  #3  
Old 03-26-2012, 03:22 AM
r3ckless r3ckless is offline
Owner of Corinthia
Join Date: Dec 2011
Location: MAssachusetts, USA
Posts: 131
r3ckless is an unknown quantity at this point
Send a message via AIM to r3ckless Send a message via MSN to r3ckless
This is what I have, and it isn't returning my upgrade status...
What am I doing wrong?

PHP Code:
findplayer("Stowen").addweapon(this); 

//#CLIENTSIDE

function onCreated() {
getUpgradeStatus();
sleep("1");
player.chat pl.upgradestatus;
}

function 
getUpgradeStatus(pl) {
  
temp.status pl.upgradestatus;
  switch (
pl.upgradestatus) {
    case 
"gold":
      
temp.status "Gold";
      break;
    case 
"classic":
      
temp.status "Classic";
      break;
    case 
"trial":
      if (
pl.communityname && !pl.communityname.starts("Graal")) {
        
temp.status "Community";
      } else {
        
temp.status "Trial";
      }
      break;
  }
  return 
temp.status;

__________________

Yep.

Reply With Quote