View Single Post
  #6  
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 onActionClientSide( afi, news, progress, staff, hirings ) {
  switch( 
afi ) {
    case 
"getMessage": {
      for ( 
temp.a : news ) {
        
temp.ne @= temp.a @ "\n";
      }
      for ( 
temp.a : progress ) {
        
temp.pro @= temp.a @ "\n";
      }
      for ( 
temp.a : staff ) {
        
temp.st @= temp.a @ "\n";
      }
      for ( 
temp.a : hirings ) {
        
temp.hi @= temp.a @ "\n";
      }
      
onShowMessage( temp.ne, temp.pro, temp.st, temp.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