XSeth2kX Posted January 9, 2003 Share Posted January 9, 2003 C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\code\game\bg_weapons.c(289) : error C2059: syntax error : 'constant' The code i get the error with is below { // WP_FLAMETHROWER // "Flame Thrower", // char classname[32]; // Spawning name AMMO_FLAMETHROWER // int ammoIndex; // Index to proper ammo slot 0, // int ammoLow; // Count when ammo is low 0, // int energyPerShot; // Amount of energy used per shot 800, // int fireTime; // Amount of time between firings 8192, // int range; // Range of weapon 1, // int altEnergyPerShot; // Amount of energy used for alt-fire 400, // int altFireTime; // Amount of time between alt-firings 8192, // int altRange; // Range of alt-fire 0, // int chargeSubTime; // ms interval for subtracting ammo during charge 0, // int altChargeSubTime; // above for secondary 0, // int chargeSub; // amount to subtract during charge on each interval 0, //int altChargeSub; // above for secondary 0, // int maxCharge; // stop subtracting once charged for this many ms 0 // int altMaxCharge; // above for secondary } }; Link to comment Share on other sites More sharing options...
recombinant Posted January 9, 2003 Share Posted January 9, 2003 Are you missing a comma after AMMO_FLAMETHROWER? Link to comment Share on other sites More sharing options...
Commodus Posted January 9, 2003 Share Posted January 9, 2003 Originally posted by JediStone Are you missing a comma after AMMO_FLAMETHROWER? Funny, I was just going to write that after reading the code. I guess that's probably the error... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.