PDA

View Full Version : Prairie dog



SpclFrcsSnpr
Sep 16 2002, 00:06
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";
}
}

Devilchaser
Sep 16 2002, 00:32
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.

SpclFrcsSnpr
Sep 16 2002, 00:33
Ya, I know but thats the way it went into the post.

Lt. Jimbo
Sep 16 2002, 02:02
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (SpclFrcsSnpr @<hidden> 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="&#92;PrairieDog&#92;PrairieDog";
armor=2;
scope=2;
displayName="Prairie Dog";
};
};[/QUOTE]<span id='postcolor'>
check out above...must add semicolons