View Single Post
  #7  
Old 08-19-2010, 02:55 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Quote:
Originally Posted by Stefan View Post
onActionClientSide(afi, datalines) should only have two parameters, second parameter is always the data lines, and then instead of for (temp.a: news), for (temp.a: progress) etc. always do for (temp.a: datalines) (or for (temp.a: params[1]))
I did that because I also have:

PHP Code:
function onActionClientSideafinewsprogressstaffhirings ) {
  switch( 
afi ) {
    case 
"getMessage": {
      for ( 
temp.news ) {
        
temp.ne @= temp."\n";
      }
      for ( 
temp.progress ) {
        
temp.pro @= temp."\n";
      }
      for ( 
temp.staff ) {
        
temp.st @= temp."\n";
      }
      for ( 
temp.hirings ) {
        
temp.hi @= temp."\n";
      }
      
onShowMessagetemp.netemp.protemp.sttemp.hi );
      break;
    }
  }

So yeah, usually I would use one parameter. And I just noticed that I should be using the second parameter for all of them lol
Reply With Quote