View Single Post
  #1  
Old 03-15-2009, 12:29 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
closing block comments...or not?

Had a weird problem with the serverside portion of a class not working, but the clientside portion worked fine:

After 20 minutes of trying to figure out why the hell my code was freaking out, I found that the problem was commented out information about functions contained in the script:
PHP Code:
/*
//INFO */ 
When writing code, it appears as if the block comment is closed, but when compiled the */ is actually being commented out by the "//"

PHP Code:
/*
//TEST */
function onActionServerSidecmd ) {
  if ( 
cmd == "Test" ) {
    echo(
"Complete");
  }
}
//#CLIENTSIDE
function onMouseDown() {
  
player.chat "Kewl";
  
triggerserver("weapon"this.name"Test"NULL );

Serverside portion would not work with the comments at the top, but the clientside portion would.
Reply With Quote