14.01.2011, 14:33
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:
what can I do about it, except for adding stock OnPlayerConnectEx() or something like that and using this
gamemode:
include:
so this is what I don't want.
I want it to work without needing to change Anything to the gamemode (only adding #include ...)
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"
gamemode:
Код:
public OnPlayerConnect(playerid) { OnPlayerConnectEx(playerid); }
Код:
stock OnPlayerConnectEx(playerid) { //code you want to execute }
I want it to work without needing to change Anything to the gamemode (only adding #include ...)