I do have this loop that does the job.
But
guns has 50 entrys
tactical 5
leathal 10

Question: Does this break the scipt? i dont get any error, but since their is different amount of entrys in every one!
should i make a loop on every single section or is it a better way of doing things?

Code
  var %i = 1 | while (%i <= $ini($shortfn($mircdirscripts) $+ %dstats $+ MW-Weapons.ini,GUNS,0)) {
    if ($readini($shortfn($mircdirscripts) $+ %dstats $+ MW-Weapons.ini,GUNS,%i) == %weapon $+ ) { .msg chan}
    if ($readini($shortfn($mircdirscripts) $+ %dstats $+ MW-Weapons.ini,TACTiCAL,%i) == %weapon $+ ) { .msg chan }
    if ($readini($shortfn($mircdirscripts) $+ %dstats $+ MW-Weapons.ini,LETHALS,%i) == %weapon $+ ) { .msg %chan }
    inc %i
  }
[u][/u]