How to use public functions in an include??
#10

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
Or do for example:
- In your script:
pawn Код:
public OnPlayerConnect(playerid)
{
    OnPlayerConnectEx(playerid);
    // Other connect stuff in the script here
    return 1;
}
- In the include:
pawn Код:
forward OnPlayerConnectEx(playerid);
public OnPlayerConnectEx(playerid)
{
    // Do your include-stuff here
}
I'm ensured this also works
so... this basically hooks the OnPlayerConnect(playerid) callback to the include right..?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)