Raised This Month: $ Target: $400
 0% 

Menus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 05-17-2012 , 18:27   Re: Menus
Reply With Quote #1

You should destroy the menu in the handler btw.
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-17-2012 , 20:42   Re: Menus
Reply With Quote #2

Quote:
Originally Posted by mottzi View Post
You should destroy the menu in the handler btw.
He had a bunch of errors in that code. But i got what he was trying to say. That tut that EpicMonkey posted was awesome.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-18-2012 , 05:45   Re: Menus
Reply With Quote #3

Quote:
Originally Posted by Liverwiz View Post
He had a bunch of errors in that code. But i got what he was trying to say. That tut that EpicMonkey posted was awesome.
Lol tell me the errors, please.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-18-2012 , 09:19   Re: Menus
Reply With Quote #4

Quote:
Originally Posted by Bilal Pro View Post
Lol tell me the errors, please.
You shouldn't have a callback if you didn't set a callback in the menu
Your switch is incomplete
You should ALWAYS have a default: in your switch. (good practice)
Your case's logic should be INSIDE the brackets
You need to CLOSE brackets after your done
You should destroy a menu before you return PLUGIN_HANDLED

And as i was looking back i realized you did close your brackets. But i didn't delete that because it just shows how much white space and indentation adds to readablity of your code. All things you need to work on.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-18-2012 , 12:04   Re: Menus
Reply With Quote #5

Quote:
Originally Posted by Liverwiz View Post
You shouldn't have a callback if you didn't set a callback in the menu
Your switch is incomplete
You should ALWAYS have a default: in your switch. (good practice)
Your case's logic should be INSIDE the brackets
You need to CLOSE brackets after your done
You should destroy a menu before you return PLUGIN_HANDLED

And as i was looking back i realized you did close your brackets. But i didn't delete that because it just shows how much white space and indentation adds to readablity of your code. All things you need to work on.
Lol those are not errors.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-18-2012 , 12:43   Re: Menus
Reply With Quote #6

Quote:
Originally Posted by Bilal Pro View Post
Lol those are not errors.
Syntax, compile-time, logical, run-time, and shitty code style are all errors. Weather you see them or not, kid. I'm aware you're still new to programming, but seriously, man. We're trying to help you get BETTER. It doesn't suit your case to argue every little thing. Especially with how many stupid bloody questions you have and your insatiable inability to understand and utilize even the simplest of code you have been given.[/rant]

Now i was trying to be nice when i ignored all them the frist time. So seriously....learn to stay quiet when its proper to do so.
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Exolent[jNr]; 05-18-2012 at 15:21. Reason: Removed unnecessary flaming.
Liverwiz is offline
Old 05-18-2012, 13:18
Bilal Pro
This message has been deleted by Exolent[jNr]. Reason: Flaming.
StickP0le
Senior Member
Join Date: Jan 2010
Location: cuantocabron.com
Old 05-17-2012 , 20:48   Re: Menus
Reply With Quote #8

Quote:
Originally Posted by mottzi View Post
You should destroy the menu in the handler btw.
thatīs really necesary?
__________________
Steam: stickp0le
StickP0le is offline
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:19.


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