Hy, i have one big problem im writing script for repairing the vehicles but i did ran in to problems, i can not find out whats wrong with this code

the hint command is there just for testing and i dont think its the problem...

is empty trigger on the map repairshop_trig just for marking the location...

This script runs in the init.

The errors are: generic error somewere in for loop, mising {



<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">


#cnext

_alltypes = &#34;Currently in repair zone&#58;&#92;n&#34;;
_i = 0
_objlist = position repairshop_trig nearObjects &#91;&#34;LandVehicle&#34;,15&#93;


if &#40;&#40;count _objlist&#41; &#62;= 1&#41; then {
for &#34;_i&#34; from 0 to &#40;&#40;count _objlist&#41; - 1&#41; do {
_obj = _objlist select _i;
_alltypes = format&#91;&#34;%1&#92;n %2&#34;,_alltypes , _obj&#93;;
_speed = sqrt&#40;&#40;&#40;_obj velocity select 0&#41; * &#40;_obj velocity select 0&#41;&#41;+&#40;&#40;_obj velocity select 1&#41; * &#40;_obj velocity select 1&#41;&#41;+&#40;&#40;_obj velocity select 2&#41; * &#40;_obj velocity select 2&#41;&#41;&#41;;
if &#40;_speed &#60; 1&#41; then {_obj setVehicleArmor 1;};

};

hint format&#91;&#34;%1&#92;n NUM OF REPAIRS&#58; %2&#34;,_alltypes , count _objlist&#93;



};

~1
goto &#34;cnext&#34;


[/QUOTE]


tnx for help