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

Hello,

I was wondering how I can add public functions, like for example OnPlayerConnect() or OnPlayerStreamin() in an include?

I can add them, but the problem is that I get this error:
Код:
error 021: symbol already defined: "OnPlayerConnect"
what can I do about it, except for adding stock OnPlayerConnectEx() or something like that and using this

gamemode:
Код:
public OnPlayerConnect(playerid)
{
    OnPlayerConnectEx(playerid);
}
include:
Код:
stock OnPlayerConnectEx(playerid)
{
    //code you want to execute
}
so this is what I don't want.
I want it to work without needing to change Anything to the gamemode (only adding #include ...)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)