SA-MP Forums Archive
gArea problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: gArea problem (/showthread.php?tid=297497)



gArea problem - OnPlayerDisconnect [SOLVED] - KfirRP - 16.11.2011

I've put the gArea include and this error shows up:
"public OnPlayerDisconnect already defined"

I don't understand what's up with that. I just put the gArea.inc in the pawn directory>include


Re: gArea problem - Vince - 16.11.2011

It means that this particular include is poorly scripted and doesn't hook the callback in an appropriate way. Ask the creator to fix it. Tell him to use ALS callback hooking method.


Re: gArea problem - KfirRP - 16.11.2011

He did do something with ALS. This is his code:
http://pastebin.com/vw6gRKZX


Re: gArea problem - KfirRP - 16.11.2011

btw, it says "Symbol already defined: OnPlayerDisconnect", just for the exact.


Re: gArea problem - KfirRP - 16.11.2011

Found his mistake: He defined gArea_OnPlayerDisconnect as OnPlayerDisconnect instead of the opposite, so change this:
pawn Код:
#define gArea_OnPlayerDisconnect OnPlayerDisconnect
to this:
pawn Код:
#define OnPlayerDisconnect gArea_OnPlayerDisconnect

Admin, please add [SOLVED] to the name of the topic.