AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   General Questions (https://forums.alliedmods.net/showthread.php?t=56710)

bwgrubbs1 06-19-2007 13:56

General Questions
 
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 ?

Lee 06-19-2007 14:44

Re: General Questions
 
There's an admittedly vague description here.. Judging from this, a lot of people return PLUGIN_HANDLED when PLUGIN_HANDLED_MAIN is more suitable.

BAILOPAN 06-20-2007 10:58

Re: General Questions
 
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.

bwgrubbs1 06-20-2007 11:39

Re: General Questions
 
Thank you.


All times are GMT -4. The time now is 21:29.

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