Script + nat rules

I’m having some trouble with enabling/disabling nat rules with scripts.

nat rules

Flags: X - disabled, I - invalid, D - dynamic 
 0   ;;; DNS redirect i Mikrotika
     chain=dstnat action=redirect to-ports=53 protocol=udp dst-port=53 

 1   ;;; DNS redirect i Mikrotika
     chain=dstnat action=redirect to-ports=53 protocol=tcp dst-port=53 

 2 X ;;; 80 porto redirect i proxy
     chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-address=!192.168.89.0/24 dst-port=80 

 3   ;;; default configuration
     chain=srcnat action=masquerade out-interface=ether1-gateway

the script that enables proxy forwarding

Flags: I - invalid 
 0   name="disable-block" owner="admin" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive last-started=may/14/2010 12:04:30 run-count=7 
     source=
       /ip firewall address-list 
       enable 5; :log info message="ijungem 89.14"; /ip firewall address-list
       enable 8; :log info message="ijungem 89.17"; /ip firewall address-list
       enable 9; :log info message="ijungem 89.18"; /ip firewall nat enable 2 ; :log info message=ijunge;

I have done some basic testing and the script enables fw rules i filter but not in nat if anyone has some insight on what is wrong. /ip firewall nat enable 2 ; /ip firewall nat enable names=2; they both work from console but not from script.
thnx for the help.

Please use search, this question have been asked so many times:

http://forum.mikrotik.com/t/variable-is-empty/34939/2

well it wasn’t written in the scripting wiki it needs to be updated
and half the script works, i can enable addresses from address-list, and i tried firewall rules they can be enabled with console number, so i assumed nat should work the same way. And i tried script example with comment, it didn’t work don’t know why, i’ll try with shorter comments now.

thnx

console numbers are there to make it easier to use console. If you are going to script, better avoid those as it is not deterministic that you will alter items you want to. That is why use comments, or if possible name attribute.