13.02.2019, 14:04
So, i'm trying to hook OnPlayerConnect with ALS and i'm getting this error:
How should I fix this?
Код:
error 021: symbol already defined: "SSCANF_OnPlayerConnect"
Код:
public OnPlayerConnect(playerid) { printf("[ALS_hook] OnPlayerConnect(%d)", playerid); #if defined on_OnPlayerConnect return on_OnPlayerConnect(playerid); #else return 1; #endif } #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect on_OnPlayerConnect #if defined on_OnPlayerConnect forward on_OnPlayerConnect(playerid); #endif