Quote:
Originally Posted by Stefan
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