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

ok, so now I have this in my Include:


Код:
public OnPlayerConnect(playerid)
{
    if(funcidx("FOnPlayerConnect") != -1)
    {
        return CallLocalFunction("F_OnPlayerConnect", "i", playerid);
    }
    return 1;
}
    
#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect F_OnPlayerConnect
forward F_OnPlayerConnect(playerid);

stock F_OnPlayerConnect(playerid)
{
	//code...
}
but I still get this error:
Quote:

\gamemodes\script.pwn(3013) : error 021: symbol already defined: "F_OnPlayerConnect"

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)