SA-MP Forums Archive
Another help but don't ignore this too :'t (+REP) - 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: Another help but don't ignore this too :'t (+REP) (/showthread.php?tid=611582)



Another help but don't ignore this too :'t (+REP) - MarkNelson - 08.07.2016

hi i have those errors in a filter script So what i must do? i have mapandreas.inc and it's defined but now i got those messages, what i must do? please help me
Код:
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(3) : warning 201: redefinition of constant/macro (symbol "MAP_ANDREAS_MODE_FULL")
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(5) : error 021: symbol already defined: "MapAndreas_Init"
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(6) : error 021: symbol already defined: "MapAndreas_FindZ_For2DCoord"



Re: Another help but don't ignore this too :'t (+REP) - diego200052 - 08.07.2016

Use this .inc

http://pastebin.com/EWrfVDgb


Re: Another help but don't ignore this too :'t (+REP) - MarkNelson - 08.07.2016

Diego. You mean i have old version? i must download the latest one from that link?


Re: Another help but don't ignore this too :'t (+REP) - diego200052 - 08.07.2016

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
Diego. You mean i have old version? i must download the latest one from that link?
You can download here: https://sampforum.blast.hk/showthread.php?tid=275492


Re: Another help but don't ignore this too :'t (+REP) - MarkNelson - 08.07.2016

thanks.


Re: Another help but don't ignore this too :'t (+REP) - MarkNelson - 08.07.2016

Код:
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(17) : error 021: symbol already defined: "MapAndreas_Init"
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(18) : error 021: symbol already defined: "MapAndreas_FindZ_For2DCoord"
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(19) : error 021: symbol already defined: "MapAndreas_FindAverageZ"
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(20) : error 021: symbol already defined: "MapAndreas_Unload"
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(21) : error 021: symbol already defined: "MapAndreas_SetZ_For2DCoord"
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\pawno\include\mapandreas.inc(22) : error 021: symbol already defined: "MapAndreas_SaveCurrentHMap"
look now


Re: Another help but don't ignore this too :'t (+REP) - diego200052 - 08.07.2016

Try editing mapandreas.inc to this:

Код:
// MapAndreas 1.2.1
// 20.7.2014
// Originally created by Kalcor, updated by Mauzen and Pamdex

#define MAP_ANDREAS_MODE_NONE			0
#define MAP_ANDREAS_MODE_MINIMAL		1
#define MAP_ANDREAS_MODE_MEDIUM			2	// currently unused
#define MAP_ANDREAS_MODE_FULL			3
#define MAP_ANDREAS_MODE_NOBUFFER		4

#define MAP_ANDREAS_ERROR_SUCCESS		0
#define MAP_ANDREAS_ERROR_FAILURE		1
#define MAP_ANDREAS_ERROR_MEMORY		2
#define MAP_ANDREAS_ERROR_DATA_FILES	3
#define MAP_ANDREAS_ERROR_INVALID_AREA	4



Re: Another help but don't ignore this too :'t (+REP) - MarkNelson - 08.07.2016

now look
Код:
error 013: no entry point (no public functions)
this happend to me after editing it and when i attempted to compile


Re: Another help but don't ignore this too :'t (+REP) - diego200052 - 08.07.2016

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
now look
Код:
error 013: no entry point (no public functions)
this happend to me after editing it and when i attempted to compile
Don't compile .inc only edit and save, then compile gamemode.


Re: Another help but don't ignore this too :'t (+REP) - Luicy. - 08.07.2016

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
now look
Код:
error 013: no entry point (no public functions)
this happend to me after editing it and when i attempted to compile
Now, you don't compile includes, neither do you replace them by defines.
He meant edit the defines to the following he gave.
Keep in mind that includes are .inc and not .amx, and tbh. They shouldn't even be possible to compile.