Author Topic: whats wrong with this? [fixed]  (Read 764 times)

« Last Edit: April 19, 2010, 09:48:03 AM by Bas_BT »

part of the log file
Code: [Select]
Loading Add-On: Weapon_Spear (CRC:-1980986625)
Add-Ons/Weapon_Spear/spear_zes.cs Line: 4 - Syntax error.
>>> Some error context, with ## on sides of error halt:
//spear_zes.cs





datablock ##A##udioProfile(spearExplosionSound)

{

   filename    = "./spearHit.wav";

   description = AudioClose3d;

   preload = false;

};



datablock AudioProfile(spearFireSound)

{

   filename    = "./spearFire.wav";

   description = AudioClose3d;

   preload = true;
>>> Error report complete.

ADD-ON "Weapon_Spear" CONTAINS SYNTAX ERRORS
Doesn't like the capital A, though this spear_zes.cs business has me wondering what you're doing the spear cs file or conflicting with it.

Doesn't like the capital A, though this spear_zes.cs business has me wondering what you're doing the spear cs file or conflicting with it.
Nah I don't think thats the problem. Torque's syntax error detection sucks.

Post more of your code.

« Last Edit: April 19, 2010, 07:30:24 AM by Bas_BT »

Try leaving the first line blank.

Try leaving the first line blank.

like this?

Code: [Select]
//spear_zes.cs
datablock AudioProfile(spear_zeloveplosionSound)
{
   filename    = "./spearHit.wav";
   description = AudioClose3d;
   preload = false;
};

datablock AudioProfile(spear_zesFireSound)
{
   filename    = "./spearFire.wav";
   description = AudioClose3d;
   preload = true;
};

thx that worked
« Last Edit: April 19, 2010, 07:58:57 AM by Bas_BT »

FIXED
This is why we don't have the edit button in the help section.

Doesn't like the capital A, though this spear_zes.cs business has me wondering what you're doing the spear cs file or conflicting with it.
look here: http://forum.blockland.us/index.php?topic=107863.0

This is why we don't have the edit button in the help section.
i did that because its a code...
and i don't want people to have it.
« Last Edit: April 19, 2010, 07:58:28 AM by Bas_BT »

i did that because its a code...
and i don't want people to have it.
What could you hope to accomplish by keeping people from seeing it?

I'm not planing on a release so it must be a secret xD

But you posted the fixed code in your message right here:
Code: [Select]
//spear_zes.cs
datablock AudioProfile(spear_zeloveplosionSound)
{
   filename    = "./spearHit.wav";
   description = AudioClose3d;
   preload = false;
};

datablock AudioProfile(spear_zesFireSound)
{
   filename    = "./spearFire.wav";
   description = AudioClose3d;
   preload = true;
};

thx that worked
Also people quoted it.

This is why we don't have the edit button in the help section.