View Single Post
  #19  
Old 05-25-2010, 08:12 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by Jiroxys7 View Post
For some reason, the values werent going through unless i did something like this:

PHP Code:
function onActionServerSide(cmdv1v2) {
  if (
cmd == "calc_math") {
    
doMakeMathVar_S();
  }
}

doMakeMathVar_S(){
    
clientr.num params[1] + params[2]; // <-------
}

//#CLIENTSIDE

function onTimeout() {  
  
temp.num1 1;
  
temp.num2 2;
  
triggerServer("weapon"this.name"calc_math"temp.num1temp.num2);
  
player.chat clientr.num;
}

setTimer(1); 
Shouldn't it be more like this
PHP Code:
function onActionServerSide(cmdv1v2) {
  if (
cmd == "calc_math") {
    
doMakeMathVar_S(v1,v2);
  }

also what's with the random setTimer(1);
Reply With Quote