Einzelnen Beitrag anzeigen
Alt 22.12.2010, 12:27   #1 (permalink)
pistolero
Newbie
 
Registriert seit: 01.11.2009
Beiträge: 8
Standard problem/fehler mit config.cpp

hallo !
ich habe versucht ein kleines medic zelt zu machen
im grunde nur eine config.cpp

als basis habe ich "old camping tent" class "Land_A_tent" ( Misc3) genommen

orginal

Zitat:

class Land_A_tent: House
{
scope = 2;
vehicleClass = "Military";
destrType = "DestructTent";
armor = 10;
model = "\CA\Misc3\A_tent";
displayName = "$STR_DN_A_TENT";
icon = "\Ca\misc3\data\Icons\icon_Atent_ca.paa";
mapSize = 3;
};


meine config.cpp

Zitat:

//Class PLO_Tent : config.bin{
class CfgPatches
{
class PLO_Tent
{
units[] = {};
weapons[] = {};
requiredVersion = 1.0;
requiredAddons[] = {"CAMisc3","CAWeapons"};
};
};
{
/*extern*/ class House;
};
class PLO_tent: House
{
scope = 2;
vehicleClass = "Military";
destrType = "DestructTent";
armor = 10;
model = "\CA\Misc3\A_tent.p3d";
icon = "\Ca\misc3\data\Icons\icon_Atent_ca.paa";
mapSize = 3;
displayName = "MyTent";
attendant = 1;
};

ich bekomme die fehlermeldung
Zitat:

File meinzelt\config.cpp, line 11: '.': '{' encountered instead of '='

ich weiss einfach nicht was ich falsch gemacht habe .... ok irgendwas in zeile 11

requiredAddons[] = {"CAMisc3","CAWeapons"};
};
};
{

aber was muss ich da anders machen ?? ... einfach klammer durch gleich ersetzen funktioniert schonmal nicht
pistolero ist offline