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:
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 onActionServerSide( cmd ) {
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.