I'm working on a calculator that is based in my OS, and I got the code written out, but there's a problem.
I get these Lua errors..
The part of my code that does the calculations is as followsCode:entities\gmod_wire_expression2\core\number.lua:109: attempt to perform arithmetic on a nil value Timer Error: entities\gmod_wire_expression2\core\number.lua:109: attempt to perform arithmetic on a nil value
So, yea help will be appreciated.Code:if(Word=="-mult"&Key==13){ A=ceil((A-1)/30)*30+0 Busy=1 PrintColor=18 Print="Multiplication Enter Numbers" Word="" Mult=1 } if(Key==13&Mult==1){ A=ceil((A-1)/30)*30+0 PrintColor=666 Busy=1 Print = Answer AN = Number * Number Number = Word:toNumber() Answer = toString(AN) }


LinkBack URL
About LinkBacks




Reply With Quote







Bookmarks