Author Topic: What is wrong with this script?  (Read 686 times)

When I run this script and it's weapon, this happens:
Code: [Select]
Loading Add-On: Weapon_1-H_Sword (CRC:-498646913)
Add-Ons/Weapon_1-H_Sword/server.cs Line: 2 - Syntax error.
>>> Some error context, with ## on sides of error halt:
/Server.cs

datablock AudioProfile(1-##H##_SwordDrawSound)

{

   filename    = "./1-H_SwordDraw.wav";

   description = AudioClosest3d;

   preload = true;

};

datablock AudioProfile(1-H_SwordHitSound)

{

   filename    = "./1-H_SwordHit.wav";

   description = AudioClosest3d;

   preload = true;
>>> Error report complete.

ADD-ON "Weapon_1-H_Sword" CONTAINS SYNTAX ERRORS
It works fine at the add-on screen, but somehow, it gets syntax errors, and won't run on a server.

Please help.
« Last Edit: March 20, 2010, 05:20:19 PM by Pi »

Try taking out the numbers


Take out the dash and the number.