View Single Post
  #2  
Old 06-14-2013, 01:59 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Style your **** mother****er.

You have mother****ing spaces in front of //#CLIENTSIDE and spaces after the ****ing declaration jesus ****ing christ.

Also what the mother**** are you expecting setlevel2 to return? that doesnt return a mother****ing value at all.

Use findplayer2 instead mother****er, it works with both accounts and mother****ing community names.

PHP Code:
function onActionServerSide() {
  if (
params[0] == "warp") {
    
temp.pl player;
    
temp.warped findplayer2(params[1]);
    if (
temp.warped != NULL) {
      
temp.pl.setlevel2(temp.warped.leveltemp.warped.xtemp.warped.y);
    } else {
      
temp.pl.chat "Can't find" SPC params[1];
    }
  }
}

//#CLIENTSIDE

function onPlayerChats() {
  if (
player.chat.starts("/warp")) {
    
triggerserver("gui"this.name"warp"player.chat.substring(5));
  }

use my mother****ing website http://www.fp4.ca/gs2beautifier/
__________________
Quote:
Reply With Quote