Raised This Month: $ Target: $400
 0% 

Bank Vault mod - Multiple plugin trouble/Forwards - bot behaviour


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-19-2010 , 06:40   Re: Bank Vault mod - Multiple plugin trouble/Forwards - bot behaviour
Reply With Quote #1

Quote:
Originally Posted by Lulu the hero View Post
Yep, you know why? I tell you why.

The program is getting bigger and bigger. Working fine. Perfectly. No errors, no warnings. Then I add a few more code. Still works. Then I add something like a menu. Then when I add a bot, the whole hl crashes without an error. Then I remove the things I've edited recently, starting to comment them out, and still has the bug( appeared at the menu ). Then I need to comment out everything almost, and then I realise: I've mistyped a letter in a string, eg. in a forward declaration. 1 flippin' character. That happens lesser then the other version, where I give up the whole thing in the middle of commenting, and just start a new file, and copy paste the working codes from the buggy to the new. It is simpler to me.

Note to self: USE SVN, MORON!( Yep, I should... )

So I am lazy to debug. I hate errors which are not syntactical errors. And I hate debugging them, so I use this method, and I got used to it.
Any idea on how to avoid these kind of problems?


Edit:
I'm doing that right now
An idea would be with preprocessors. To enable you to debug faster .
If you are interested I can give you a small code example.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 08-19-2010 , 06:46   Re: Bank Vault mod - Multiple plugin trouble/Forwards - bot behaviour
Reply With Quote #2

Here is the newest version, everything working, except the item buying from the menu( gonna sort that out today ).

Enjoy, and I am waiting for further ideas...

Edit: SORTED OUT THE ERROR, but the menus are still uncomplete.
I extracted the menu codes and put it into an external file, which can be found in the bank_vault includes.zip file.
Attached Files
File Type: sma Get Plugin or Get Source (bv_extra_purses.sma - 311 views - 1.8 KB)
File Type: inc bank_vault.inc (2.2 KB, 58 views)
File Type: zip cstrike.zip (23.1 KB, 55 views)
File Type: sma Get Plugin or Get Source (bank_vault.sma - 271 views - 15.5 KB)
File Type: zip bank_vault inlines.zip (2.1 KB, 60 views)

Last edited by Lulu the hero; 08-26-2010 at 20:27. Reason: sorted out a bug
Lulu the hero is offline
Old 08-19-2010, 08:29
chinanetpower123456
This message has been deleted by YamiKaitou. Reason: spambot
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 00:12.


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