Author Topic: Sound script not working  (Read 328 times)

When I try to use my custom sounds, I always get this error:
Code: (Console log Chunk) [Select]
Add-Ons/Sound_Orthone/server.cs Line: 1 - Syntax error.
>>> Some error context, with ## on sides of error halt:
atablock AudioProfile(Or-S##o##rry)

{

^filename = "./OrthoneVoice2.wav";

^description = AudioClosest3d;

^preload = false;

};



datablock AudioProfile(Or-Mayshop : Or-Sorry)

{

^filename = "./OrthoneVoice3.wav";

};



datablock AudioProfile(Or-Ehancedchal : Or-Sorry)

{

^filename = "./OrthoneVoice4.wav";
>>> Error report complete.

ADD-ON "Sound_Orthone" CONTAINS SYNTAX ERRORS


Here's the code for my Sound
Code: (Server.cs) [Select]
datablock AudioProfile(Or-Sorry)
{
filename = "./OrthoneVoice2.wav";
description = AudioClosest3d;
preload = false;
};

datablock AudioProfile(Or-Mayshop : Or-Sorry)
{
filename = "./OrthoneVoice3.wav";
};

datablock AudioProfile(Or-Ehancedchal : Or-Sorry)
{
filename = "./OrthoneVoice4.wav";
};

datablock AudioProfile(Or-Useparkour : Or-Sorry)
{
filename = "./OrthoneVoice5.wav";
};

- is your problem
Try something better such as _