Posted 11 February 2015 - 07:57 PM
Why this is wrong?
dificuldade = read()
print("Ok.")
sleep(2)
print("Sejam bem vindos "..player1.." e "..player2..".")
if dificuldade == "1" then
local a = "Facil"
print("debug: 1")
elseif dificuldade == "2" then
local a = "Medio"
print("debug: 2")
elseif dificuldade == "3" then
local a = "Dificil"
print("debug: 3")
end
print("Voces vao jogar na dificuldade "..a) ERROR IN THIS LINE: attempt to concatenate string and nil
Edited on 11 February 2015 - 07:53 PM