SA-MP Forums Archive
Why do i get this 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why do i get this warning? (/showthread.php?tid=150634)



Why do i get this warning? - DevilRP - 27.05.2010

Код:
: warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
when i add
Код:
#include <streamer>
on my GM?
this is the streamer-
Код:
http://forum.sa-mp.com/index.php?topic=127905.0



Re: Why do i get this warning? - Backwardsman97 - 27.05.2010

Somewhere in the streamer it has OnGameModeInit.


Re: Why do i get this warning? - Miguel - 27.05.2010

Did you add #include <a_samp> before adding that line?


Re: Why do i get this warning? - DevilRP - 27.05.2010

Yea of course, will it cause problems if i ignore this warning?
if not how can i fix this without damaging the include?


Re: Why do i get this warning? - Backwardsman97 - 27.05.2010

Well most includes would have something like Streamer_Init that would be a function that gets called under OnGameModeInit. It basically just triggers the streamer to initialize without having the same function name as the one already defined.


Re: Why do i get this warning? - DevilRP - 27.05.2010

This sux, i read on the thread, that if i add foreach + zcmd latest versions then it will be fixed, however, the link of foreach is broken so i dont know what to do


Re: Why do i get this warning? - Backwardsman97 - 27.05.2010

Yeah it seems you just need to update those.


Re: Why do i get this warning? - DevilRP - 27.05.2010

The link for foreach is broken, can you please upload it for me dude?


Re: Why do i get this warning? - iggy1 - 27.05.2010

i have a copy of foreach but i dont know if im allowed to put a link up if someone can confirm if im allowed ill post a link.


Re: Why do i get this warning? - shady91 - 27.05.2010

Quote:
Originally Posted by iggy1
i have a copy of foreach but i dont know if im allowed to put a link up if someone can confirm if im allowed ill post a link.
just PM him the link if your worried about posting it.