Zeex/sampgdk

Confusing documentation

Closed this issue · 2 comments

For example, OnPlayerConnect has a badret of false. This means that when you return false in OnPlayerConnect inside your plugin it will not be called in subsequent plugins, i.e. plugins that have been loaded before yours, as well as the gamemode.

"subsequent" means "after", but the wiki says "before" - which is it please? Thanks. I read that as meaning that callbacks in plugins are called in reverse order - last loaded to first loaded, is that true?

Edit;

Obviously I'm talking about this page:

https://github.com/Zeex/sampgdk/wiki/Callback-return-values

AFAIK The plugins loaded before. The "first" plugin is the plugin where the callback is first processed, because the hooks are applied from first to last plugin, the last plugin is the first where the callback is processed on. This makes plugins loaded before yours the subsequent plugins.

Zeex commented

@ikkentim is correct, callbacks are called in reverse order - from last loaded plugin to first. Sorry, I didn't realize it was confusing. I'll edit the wiki to reflect this.