PDA

View Full Version : Using the 'return;' command in a plugin


PhilG
01-27-2012, 08:40 AM
Hi,

I'm creating a plugin and want to use the 'return;' command to finish executing code from the function that the hook resides in.

Unfortunately the command seems to be used to 'return;' from the 'eval()' command and not the actual function.

How can I get around this?

kh99
01-27-2012, 02:36 PM
I don't believe there is any way around that, it's just another limitation of what you can do in a plugin (and I know it's annoying because I've been though that myself). If I remember correctly you also cannot break or continue if the plugin is called from a loop or switch.