SA-MP Forums Archive
error, that a callback is already defined - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error, that a callback is already defined (/showthread.php?tid=80411)



error, that a callback is already defined - dice7 - 04.06.2009

I have a custom gm and I use the callback OnPlayerUpdate(playerid) in it.
I just added this include into it, because I need to callback OnPlayerWeaponChange, but now when I compile my script, i get an error saying

"error 021: symbol already defined: "OnPlayerUpdate"

Please help


Re: error, that a callback is already defined - Correlli - 04.06.2009

OnPlayerUpdate is already in that include, just remove OnPlayerUpdate from your .pwn file.