closing orders counter

 

is this how it should be done ?

for(int i=OrdersTotal(); i>0; i--)

 
for(int i=OrdersTotal()-1; i>=0; i--)
 

ahh yes !! thanks viffer now i see why i was having a prolem with that !!

Reason: