function blabla(){ %client = howtogettheclientidontknow; %client.variable - 1; messageClient(%client,'',%client.variable);}
%count = clientGroup.getCount();for(%i=0;%i<%count;%i++){ %client = clientGroup.getObject(%i); %client.doSomething();}
for(%i=0;%i<ClientGroup.getCount();%i++){ %client = ClientGroup.getObject(%i); //do stuff}
My way is better
You didn't even include %count = clientGroup.getCount(); though
he directly put it in the loop
Mold, I've done it the way I posted before and it works.
function testfor(){ for(%i = 0; %i <= clientGroup.getCount(); %i++) { %client = clientGroup.getObject(%i); echo(%i SPC %client); }}
0 89561 -1