Raised This Month: $ Target: $400
 0% 

Help with a custom mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
over_mind
Member
Join Date: Aug 2006
Location: Cajun Country!
Old 01-22-2007 , 06:37   Re: Help with a custom mod
Reply With Quote #1

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.

Last edited by over_mind; 02-19-2007 at 02:12.
over_mind is offline
Send a message via AIM to over_mind Send a message via MSN to over_mind
Old 01-22-2007, 07:28
dutchmeat
This message has been deleted by dutchmeat. Reason: something with the attachment
over_mind
Member
Join Date: Aug 2006
Location: Cajun Country!
Old 01-22-2007 , 07:59   Re: Help with a custom mod
Reply With Quote #3

Hey dutchmeat everything works properly now. Only mistake you made was that

Code:
public check_rented(id,room)
needed to be

Code:
public check_rented(id,key)
Very nice on how you put all those functions into one. I'll add karma whenever I can "spread more reputation around".
over_mind is offline
Send a message via AIM to over_mind Send a message via MSN to over_mind
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-22-2007 , 08:12   Re: Help with a custom mod
Reply With Quote #4

ah yes ofcourse sorry, i missed that one
*never post an incomplete code again dutchie!!!*
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
kuidao
Junior Member
Join Date: May 2006
Old 01-24-2007 , 14:06   Re: Help with a custom mod
Reply With Quote #5

Hi, I'd like to have the plugin you made too, but I just can't download it :S

When I try to dowload the amxx it sais it can't compile, so I downloaded the sma and tried to compile by myself but I can't...

Could you check this please?

Thanks
kuidao is offline
Send a message via AIM to kuidao
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode