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(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float: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(3409, X, Y, Z, 0, 0, 200.0, 0);
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")