Jump to content




Compare data from a file to inputs


  • You cannot reply to this topic
2 replies to this topic

#1 Alerith

  • Members
  • 36 posts

Posted 18 April 2013 - 10:28 PM

Hello everybody, this is my code:

Spoiler

Here is the problem: when I try to load the file, calling the function, I dont know how to compare that data with the one that the user inputs. In the register part, the function saves that table, is every ok. If I dont use the files and functions, the program works perfectly, but obviously if I reboot, all saved data in the tables will be lost.

Thanks in advance

#2 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 18 April 2013 - 11:31 PM

It appears as though you load the file, but you don't assign it to the Users table.
Users = load()
It also doesn't look like the "save" variable you're using with the load function has a purpose.

#3 Alerith

  • Members
  • 36 posts

Posted 18 April 2013 - 11:47 PM

View PostKingdaro, on 18 April 2013 - 11:31 PM, said:

It appears as though you load the file, but you don't assign it to the Users table.
Users = load()
It also doesn't look like the "save" variable you're using with the load function has a purpose.

Thank you, you solved my problem. I erased the "save" from the both functions and asigned the load function to Users.

But I have other problem now.. If I enter 2 or more accounts, when I want to login with any of them, I can't access.





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users