View Single Post
  #1  
Old 12-25-2011, 10:55 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
triggerserver wont work?

Well the script seems like itīs not triggering the server. Where is the error?

Here are some parts of the script:

This way it wont work
PHP Code:
function onActionServerSide() {
  echo(
"debug");
}

//#CLIENTSIDE
public function FireWeapon(stats) {
  
temp.action stats[0];
  
temp.freeze stats[1];
  
temp.power stats[2];
  
temp.ganis stats[3]; //walk, idle, weapon
  
temp.wname stats[4];
  
onMelee(freezepowerganiswname);
  
//triggering the server right here would work
}

function 
onMelee(freezepowerganisname) {
  
triggerServer("gui"name"Attack"); //here it wont work

but like this it would work:
PHP Code:
function onActionServerSide() {
  echo(
"debug");
}

//#CLIENTSIDE
public function FireWeapon(stats) {
  
onMelee();
}

function 
onMelee() {
  
triggerServer("gui"name"Attack"); //here it works

__________________
MEEP!
Reply With Quote