-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Logic #1
Comments
Hello! First Counting on As for Cheers |
Yesterday I've been discussing about this with Southclaws, seems you might call X callback before other hooks just using an ALS hook before using #if !defined Y_@@@@_HEADER
/* --------------------- */
public OnPlayerConnect(playerid)
{
OnPlayerConnect_First(playerid);
// OnPlayerConnect_First will be called before any other OnPlayerConnect hooks.
#if defined my_OnPlayerConnect
return my_OnPlayerConnect(playerid);
#else
return 1;
#endif
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect my_OnPlayerConnect
#if defined my_OnPlayerConnect
forward my_OnPlayerConnect(playerid);
#endif
/* --------------------- */
#include "core\header"
// [...]
#define Y_@@@@_HEADER
#elseif !defined Y_@@@@_END On the other hand, there is a I like the |
Hello, what kind of logic is this meant for?
Y-Core/gamemodes/ycore.pwn
Line 15 in aca42da
Is there any way to know which
OnGameModeInit
is going to be called first? Did you add another callback for that purpose?Is the
call
function defined on YSI? May you explainALS_DO_GroupInit
please?Thank you.
The text was updated successfully, but these errors were encountered: