SA-MP Forums Archive
Merging Filterscripts with GM - 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: Merging Filterscripts with GM (/showthread.php?tid=535071)



Merging Filterscripts with GM - Jigsaw123 - 01.09.2014

Hello, I've tried Merging my script with a filterscript, by putting the filterscript in pawno and using..
#include <../bbrp/example.pwn> in script.
Now it gives me errors like:

Код:
C:\Users\USER\Desktop\Server\gamemodes\SAU-RP.pwn(925) : error 021: symbol already defined: "S@@_OnPlayerSpawn"
C:\Users\USER\Desktop\Server\gamemodes\SAU-RP.pwn(1005) : error 021: symbol already defined: "S@@_OnDialogResponse"
C:\Users\USER\Desktop\Server\gamemodes\SAU-RP.pwn(1580) : error 021: symbol already defined: "S@@_OnPlayerStateChange"
C:\Users\USER\Desktop\Server\gamemodes\SAU-RP.pwn(1720) : error 021: symbol already defined: "S@@_OnPlayerDeath"
and:

Код:
C:\Users\USER\Desktop\Server\gamemodes\SAU-RP.pwn(818) : error 021: symbol already defined: "Itter_OnPlayerConnect"
C:\Users\USER\Desktop\Server\gamemodes\SAU-RP.pwn(857) : error 021: symbol already defined: "Itter_OnPlayerDisconnect"
How can i fix this?


Re : Merging Filterscripts with GM - Clad - 01.09.2014

Delete this symboles, You already have them in the GameMode.


Re: Merging Filterscripts with GM - Stinged - 01.09.2014

Are you including a pwn file, with callbacks in it without hooking?
If so, then the problem is you can't use the same callback twice or more in the same script