Raised This Month: $ Target: $400
 0% 

General Questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 06-19-2007 , 13:56   General Questions
Reply With Quote #1

OK...I am sick and tired of asking stupid questions on here. So would someone please explain to me the difference in all the returns.

return 1;
return PLUGIN_HANDLED;
return PLUGIN_HANDLED_MAIN;
return PLUGIN_CONTINUE;
return FMRES_IGNORED;
...
all these different things

I don't know when to use what and I am always asking for help because something is not working properly...

Can someone either type to me what the differences are, or link me to a page so I can read a DESCRIPTION on what they do.

ALSO...I wish to change a plugin of mine from saving to nVault -> SQL.

I have no clue about SQL...so I will start off by asking this. Do I need to go online and create some sort of SQL account to save data to ? Or do i get some program and create a SQL database on my computer here. OR...what do I need to do in order to even think about saving to SQL ?
bwgrubbs1 is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-19-2007 , 14:44   Re: General Questions
Reply With Quote #2

There's an admittedly vague description here.. Judging from this, a lot of people return PLUGIN_HANDLED when PLUGIN_HANDLED_MAIN is more suitable.
Lee is offline
BAILOPAN
Join Date: Jan 2004
Old 06-20-2007 , 10:58   Re: General Questions
Reply With Quote #3

PLUGIN_CONTINUE and FMRES_IGNORED mean you wish to not interrupt any original action. For example, in a command function, this will make the game thing that the command was not found.

PLUGIN_HANDLED and PLUGIN_HANDLED_MAIN will block the parent action.

Much of the time you never actually need to return these values unless you know you have to. Timers, client connection/disconnect forwards, et cetera, do not require them. Command functions do.
__________________
egg
BAILOPAN is offline
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 06-20-2007 , 11:39   Re: General Questions
Reply With Quote #4

Thank you.
bwgrubbs1 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 21:29.


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