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..
Code:
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
The part of my code that does the calculations is as follows
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)
}
So, yea help will be appreciated.
Bookmarks