What's wrong with this? [Lua]

Status
Not open for further replies.

Macemore

Circumcised pineapples
Aug 26, 2011
1,681
819
Code:
::redo::
io.write("Password: ")
pass = io.read()
if pass1 == pass then goto complete else goto again
local x
::complete::
print("Hello!")
goto complete
::again::
The password was incorrect!
goto redo
Says "lua: pass.lua:1: unexpected symbol near ':'"
help?
 

brsy

nah mang
May 12, 2011
1,530
272
Don't know anything about Lua, but I don't see you defining pass1 anywhere. Maybe that could be the error. And again, remember all I do is PHP as of now, so I don't know anything about Lua.
 

Macemore

Circumcised pineapples
Aug 26, 2011
1,681
819
Don't know anything about Lua, but I don't see you defining pass1 anywhere. Maybe that could be the error. And again, remember all I do is PHP as of now, so I don't know anything about Lua.
Sorry i forgot the Top line, the very top line is
Code:
 pass1="password"
 
Status
Not open for further replies.

Users who are viewing this thread

Top