PtokaX forum

Development Section => Your Developing Problems => Topic started by: blackwings on 23 August, 2005, 18:19:35

Title: interpretation of error message
Post by: blackwings on 23 August, 2005, 18:19:35
Is it correct that the error messages written in the order of the varibles on the line the error message says.
For example, this first code error message says "compare nil with number" = function Main()
if nil<3 then
i = "yes"
end
end

[17:56] Syntax C:\ptokax03321\scripts\errorTest.lua:2: attempt to compare nil with number
but this second code says "compare number with nil" when you switch on the comparison in if = function Main()
if 3 i = "yes"
end
end

[17:57] Syntax C:\ptokax03321\scripts\errorTest.lua:2: attempt to compare number with nil
So am I right?
Title:
Post by: bastya_elvtars on 23 August, 2005, 18:38:59
You are, I have seen this several times.