From: Aneurin Evans Date: 2013-05-25T22:21:10+09:00 Subject: Need help with bugfixing I'm new and keep getting the errors password. rb:41: syntax error, unexpected keyword_else, expecting keyword_end password.rb:47: syntax error, unexpected $end, expecting keyword_end how can I fix it? $namelist = [0,100] $count = $passlist = [0,100] $namecount = 0 $passcount = 0 def newaccount $namelist[$count] = gets.chomp puts "Type a username:" $passlist[$count] = gets.chomp puts "Type a password:" sleep (2) puts "account created." end def savedaccount user == gets.chomp puts "Type in your username:" pass == gets.chomp puts "Type in your password:" loop do if $namelist[$namecount.to_i] != user until $namelist[$namecount.to_i] == user user == $namecount.to_s end loop do if $passlist[$passcount.to_i] != user until $passlist[$passcount.to_i] == user user == $passcount.to_s end end if $passcount == $namecount puts "welcome #{namecount}" end puts "type new to make a new account or saved to access an existing account". input == gets.chomp if input == "new" newaccount end else if input == "saved" savedaccount end end end end -- Posted via http://www.ruby-forum.com/.