Jump to content
Sign in to follow this  
SpclFrcsSnpr

Prairie dog

Recommended Posts

Yes I am making a prairie dog target like the Human Silouet target ingame But whenever I try to put my dog ingame I get this ("{" encountered instead of "="} Any help. And here is my cpp.

//PrairieDog by SpclFrcsSnpr

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

class CfgPatches

{

class PrairieDog

{

units[] = {PrairieDog};

weapons[] = {};

requiredVersion = 1.10;

};

};

class CfgVehicles

{

class All {};

class AllVehicles : All {};

class Land : AllVehicles {};

class Static : Land {};

class Building : Static {};

class NonStrategic : Building {};

class TargetTraining : NonStrategic {};

class TargetGrenade: TargetTraining {};

class PrairieDog: TargetGrenade

{

model="\PrairieDog\PrairieDog";

armor=2;

scope=2;

displayName="Prairie Dog";

}

}

Share this post


Link to post
Share on other sites

always use tab or spacing to organize your class structure. It will help you tremendously. Example:

class cfgweapons

{

class default {};

class mgun : default {};

class myweapon : mgun

{

displayname = "my weapon";

};

};

//===============

see how much easier that is to read? Try that and I think you'll see where that error is.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (SpclFrcsSnpr @ Sep. 15 2002,17:06)</td></tr><tr><td id="QUOTE">//PrairieDog by SpclFrcsSnpr

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

class CfgPatches

{

class PrairieDog

{

units[] = {PrairieDog};

weapons[] = {};

requiredVersion = 1.10;

};

};

class CfgVehicles

{

class All {};

class AllVehicles : All {};

class Land : AllVehicles {};

class Static : Land {};

class Building : Static {};

class NonStrategic : Building {};

class TargetTraining : NonStrategic {};

class TargetGrenade: TargetTraining {};

class PrairieDog: TargetGrenade

{

model="\PrairieDog\PrairieDog";

armor=2;

scope=2;

displayName="Prairie Dog";

};

};<span id='postcolor'>

check out above...must add semicolons

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
Sign in to follow this  

×