Jump to content
Walkero0

basicDefines_A3 PboProject Warnings

Recommended Posts

hy,

I want to remove all warnings from my mod and

PboProject won't pack my basicDefines_A3.hpp because of this warning:

***warning***:In file '\wlk_roads\basicdefines_A3.hpp': macro 'LOAD': trailing ; should be in each caller. Never the macro body. 

 

 

My basicDefines_A3:

Spoiler

#define true 1
#define false 0

#define VSOFT 0
#define VARMOR 1
#define VAIR 2

// type scope
#define private 0
#define protected 1
#define public 2

#define CANSEERADAR 1
#define CANSEEEYE 2
#define CANSEEOPTICS 4
#define CANSEEEAR 8
#define CANSEECOMPASS 16
#define CANSEERADARC CANSEERADAR+CANSEECOMPASS
#define CANSEEALL 31
#define CANSEEPERIPHERAL 32
		
//lock acquiring
#define MANUALLA      0		
#define AUTOMATICLA   1

//lockable target type
#define LOCKGROUNDTT      0
#define LOCKAIRGROUNDTT   1
#define LOCKAIRTT         2
#define LOCKGROUND      0
#define LOCKAIRGROUND   1
#define LOCKAIR         2

//missile lock type
#define FIREANDFORGETLT   0
#define KEEPLOCKEDLT      1
#define MANUALLT          2

#define SPEED_STATIC 1e10

#define LOCKNO		0
#define LOCKCADET	1
#define LOCKYES		2

enum {STABILIZEDINAXESNONE,STABILIZEDINAXISX,STABILIZEDINAXISY,STABILIZEDINAXESBOTH, STABILIZEDINAXESXYZ};

#define STABILIZEDINAXESNONE 0		
#define STABILIZEDINAXISX 1
#define STABILIZEDINAXISY 2
#define STABILIZEDINAXESBOTH 3
#define STABILIZEDINAXESXYZ 4

#define CM_NONE        0
#define CM_LOCK_VISUAL 1
#define CM_LOCK_IR     2
#define CM_LOCK_LASER  4
#define CM_LOCK_RADAR  8
#define CM_MISSILE     16


#define CMIMMUNITY_GOOD 0.9
#define CMIMMUNITY_MIDDLE 0.65
#define CMIMMUNITY_BAD    0.5

#define MAG_XX(A,B) CLASS _XX_##A {MAGAZINE = A; COUNT = B;}
#define WEAP_XX(A,B) CLASS _XX_##A {WEAPON = A; COUNT = B;}
#define ITEM_XX(A,B) CLASS _XX_##A {NAME = A; COUNT = B;}
#define BAG_XX(A,B) CLASS _XX_##A {BACKPACK = A; COUNT = B;}

#define DEFAULT_SLOT 0
#define MUZZLE_SLOT 101
#define OPTICS_SLOT 201
#define FLASHLIGHT_SLOT 301
#define NVG_SLOT 602
#define GOGGLE_SLOT 603
#define HEADGEAR_SLOT 605
#define UNIFORM_SLOT 801

#define HMD_SLOT       616
#define BINOCULAR_SLOT 617
#define MEDIKIT_SLOT   619
#define RADIO_SLOT    611

#define VEST_SLOT      701
#define BACKPACK_SLOT  901

#define LOAD(weight,capacity) maximumLoad = ##capacity##; \
							  mass = ##weight##;
							  
#define HEADARMOURCOEF 2.5
#define BODYARMOURCOEF 10
#define HANDARMOURCOEF 5
#define LEGARMOURCOEF 5

 

How can I fix this line 87?

Share this post


Link to post
Share on other sites

It seems to be correct. But when I copy/paste your code into a code block, I get corrupt/invisible characters on those lines:

RbojK6E.png

 

It's impossible for me to tell if they were incurred during my copy/paste or yours, possibly when you built your .hpp. Fortunately, it's an easy check/fix. Just paste your code into a code block again. If you see any red dots, delete them and copy your newly cleaned code back out of the code block.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×