I can't seem to find the "syntax error" in this. Can someone help me find it?
function fireScan(){
for(%i=0;%i<mainBrickGroup.getCount();%i++){
%group=mainBrickGroup.getObject(%i);
for(%a=0; %a <= %group.getCount(); %a++){
%brick=%group.getObject(%a - 1);
initContainerBoxSearch(%brick.position,"12 12 12",$TypeMasks::FxBrickObjectType);
%fireDetected=false;
%client=0;
while(%searchObj = containerSearchNext())
{
if(%searchObj.onFire){
%fireDetected=true;
%client=%searchObj.fireclient;
}
}
if(%fireDetected)
%brick.processInputEvent("onFireDetected",%client);
}
}
$fireScanSched=schedule(1000,0,fireScan);
}
registerInputEvent("fxDTSBrick","onFireDetected","Self fxDTSBrick\tClient GameConnection");
registerOutputEvent("fxDTSBrick","lightFire","",1);
fireScan();
It throws me this error:
Line: 35 (20 on this post) - Syntax error.
$fireScanSched=schedule(1000,0,fire##
Thanks.