When I run
this script and it's weapon, this happens:
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.