Weird warning - 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: Weird warning (
/showthread.php?tid=373907)
Weird warning -
Johnson_Brooks - 01.09.2012
In my entire career of scripting i never got this warning(atleast before 4 minutes)
So while i wanted to edit something in my SF GangWars gamemode i got this warning:
Код:
C:\Users\Johnson\Desktop\MyServer\pawno\include\streamer.inc(338) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterCheckpoint")
C:\Users\Johnson\Desktop\MyServer\pawno\include\streamer.inc(357) : warning 201: redefinition of constant/macro (symbol "OnPlayerLeaveCheckpoint")
NOTE: Its the first time i get this warning, 20 mins ago when i finished adding objects/vehicles to my gamemode the compiler was compiling without giving me errors/warnings
Re: Weird warning -
MP2 - 01.09.2012
It's not a weird warning at all - read what it says. Something has been
redefined. In this case, OnPlayerEnterCheckpoint and OnPlayerLeaveCheckpoint. You have two instances of the callback.
Remove the callback from your game mode.
Re: Weird warning -
[HK]Ryder[AN] - 01.09.2012
Try updating to latest streamer.
Re: Weird warning -
Johnson_Brooks - 01.09.2012
I got the latest streamer and even if i remove it,it will give me the same warning( since i comment it and nothing happens)
EDIT: OMG,i removed it and i still get that warning.
Maybe its the gamemode,because in my other gamemode this doesn't happen :L
Re: Weird warning -
Stigg - 01.09.2012
It would be simpler to just show us the code.
Re: Weird warning -
Johnson_Brooks - 01.09.2012
Show you the code of the streamer.inc ? you mad?
Re: Weird warning -
Stigg - 01.09.2012
Quote:
Originally Posted by Johnson_Brooks
Show you the code of the streamer.inc ? you mad?
|
The code your having trouble with. And no i'm not mad.
Re: Weird warning -
Sgt.TheDarkness - 01.09.2012
Quote:
Originally Posted by Johnson_Brooks
Show you the code of the streamer.inc ? you mad?
|
What the hell are you implying there? I'm like literally confused, if you're dealing with objects, I'd suggest you put them in a filterscript for easy editing, but that's just me.
Just post the streamer.inc code!
Re: Weird warning -
MP2 - 02.09.2012
There's no need to post the streamer.inc code. The problem is not in there unless he edited it - if so he should revert to the original version (re-download).
Re: Weird warning -
mamorunl - 02.09.2012
So you have a callback "OnPlayerEnterCheckpoint" in the streamer.inc and in your gamemode.. Remove one or merge them together (same for the other one)