SA-MP Forums Archive
I get 2 warnings when i compile - 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: I get 2 warnings when i compile (/showthread.php?tid=591464)



warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS") - Mikkel_RE - 12.10.2015

Hi, i am getting this warning when i compile my gamemode, can anybody tell me what is wrong?

Warnings:
pawn Код:
C:\Users\Mikkel\Desktop\Server stuff 2015_16\pawno\include\erpPickupStreamer.inc(3) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")



Re: I get 2 warnings when i compile - jlalt - 12.10.2015

never mind xd


Re: I get 2 warnings when i compile - ZeMuNaC - 12.10.2015

You have too many arguments at CreateObject.
Use it like this.
PHP код:
CreateObject(modelidFloat:XFloat:YFloat:ZFloat:rXFloat:rYFloat:rZFloat:DrawDistance



Re: I get 2 warnings when i compile - Mikkel_RE - 12.10.2015

I have tried that, it doesnt Work ZeMuNac


Re: I get 2 warnings when i compile - ZeMuNaC - 12.10.2015

You have 9 arguments where 8 is needed..
Also what's the point of Z-2?
Try like this.
PHP код:
weedObject[weed] = CreateObject(3409XYZ00200.00); 



Re: I get 2 warnings when i compile - Mikkel_RE - 12.10.2015

Oh yea, i just noticed thank you


Re: I get 2 warnings when i compile - Mikkel_RE - 12.10.2015

Do you know why i get this warning?
pawn Код:
C:\Users\Mikkel\Desktop\Server stuff 2015_16\pawno\include\erpPickupStreamer.inc(3) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")



Re: I get 2 warnings when i compile - ZeMuNaC - 12.10.2015

MAX_PICKUPS is already defined in a_samp.inc

So if you have it in your gamemode you can remove it.
It is probably somewhere on top #define MAX_PICKUPS Number


Re: I get 2 warnings when i compile - Mikkel_RE - 12.10.2015

Thanks


Re: I get 2 warnings when i compile - AbyssMorgan - 12.10.2015

Example:

PHP код:
#define test    1
#define test    2 
warning 201: redefinition of constant/macro (symbol "test")