Attachment 13414Ok I've changed a few things. This is what happens. I rent hotel a. I then try to rent hotel b, it prevents me from renting it and says "you cannot rent more than one room". At this point everything seemed to be working, but then I tried something else.
After renting hotel a, I went ahead and edited the mysql manually to set my minutes left to 0, therefore cancelling my ownership to hotel a. After that I go to rent hotel a again, but it says I can't rent more than one room even though my steam id is not in any of the rows in the "steamid" column.
Basically, it seems that it will set g_rented to 1 after I rent a room but won't reset it even though I put stuff in the coding to reset g_rented to 0. Blah...more help please?
I'm uploading the newest version of this.