View Single Post
  #7  
Old 02-20-2009, 10:20 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
because the level name is a string and needs to be surround by quotes, otherwise it is read as variable. Also it is bad styling to have commands outside functions, so here what I would do.

PHP Code:
function onCreated()
{
  
findPlayer"Schetti").addweapon(this.name);
}

function 
onActionserverside()
{
  switch ( 
params[0])  
  {
    case 
"oslwarper":
      if ( 
findPlayerparams1]).account != NULL
        
setlevel2"osl.nw"2722);
      else
        
findPlayerparams1]).chat "Account name" SPC findPlayerparams1]).account SPC "not found!";
    break;
  }
}

//#CLIENTSIDE
function onPlayerChats() 
{
  if (
player.chat == "Warpus Oslensis" && player.account != "Graal686747")  
    
triggerserver("gui"this.name"oslwarper"player.account);

Hope this helps. =]
__________________
Deep into the Darkness peering...
Reply With Quote