View Single Post
04-09-13, 07:27 AM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
Try to make your 'e' variable local instead (and do the same to loaded). Keep everything as local as possible. This fixes all kinds of strange problems, possibly this one as well, and it's general good practice.

Also, lua makes no distinction between integers and float/double, so there is no need to add decimals to your counter variable.

Edit: I tried this and the counter is actually working fine, maybe I misunderstood the problem? You're not loading the code twice (through ToC and XML), are you?

Last edited by Haleth : 04-09-13 at 07:34 AM.
  Reply With Quote