Script for limiting user on total traffic quota

Hi,

the script described here:

http://wiki.mikrotik.com/wiki/Limiting_a_user_to_a_given_amount_of_traffic_II

:local traf;
/queue simple
  :for i from=1 to= 254 do =  {
    :if ([/queue simple find target-addresses=("192.168.1." . $i)] != "") do={
      :set traf [get [find target-addresses=("192.168.1." . $i)] total-bytes]
      :if ($traf  > 104857600) do = {
        set [find target-addresses=("192.168.1." . $i)] max-limit= 32000/64000
      }
    }
  }

does not work anymore

Because this script is very old, what would be the correct syntax for it to work in ROS V6.x?

I solved

it works now in ROS v6.x

:local traf; 
/queue simple 
:for i from=1 to=254 do={ 
:if ([/queue simple find target=("192.168.1." . $i . "/32")]!="") do={ 
:set traf [get [find target=("192.168.1." . $i . "/32")] total-bytes] 
:if ($traf>104857600) do={ 
set [find target=("192.168.1." . $i . "/32")] max-limit=80000/80000
}
}
}

Does the script assume the simple queues already exist ?