Posted 14 April 2015 - 03:38 PM
Hey coders!
I need some help narrowing down a problem i have with a program that i have written.
http://pastebin.com/d8VkATW3
Everytime the startup program runs after a server restart this error shows up:
When i comment out that line of code the same happens to the line after that, and after that. until all those four lines are. (the "round(math.floor)" lines)
Then the program starts. The four variables is needed in the program so it wont run well with them commented out.
If i now uncomment those lines the program starts perfectly and everything works.
Why??
Thanks in advance!
I need some help narrowing down a problem i have with a program that i have written.
http://pastebin.com/d8VkATW3
Everytime the startup program runs after a server restart this error shows up:
startup:13: attempt to call nil
When i comment out that line of code the same happens to the line after that, and after that. until all those four lines are. (the "round(math.floor)" lines)
Then the program starts. The four variables is needed in the program so it wont run well with them commented out.
If i now uncomment those lines the program starts perfectly and everything works.
Why??
Thanks in advance!