SoundPacket 5065 Error?

05/17/2019 04:28 forgefor#1
How to make client call a sound through server?

I use this kind of aspect, but I can not make this sound

[Only registered and activated users can see links. Click Here To Register...]

OBS: source C# 5065 redux :)

Quote:
client.Send(Packets.Game.StringsPacket.Create(clie nt.UID, StringAction.PlayerWave, "sound/train.wav 0 0 1"));
05/17/2019 10:32 teroareboss1#2
its 2 strings... and set the UID = 0
string[] texts = new string[2];
texts[0] = "sound/train.wav";
texts[1] = "1"


Code:
client.Send(stream.StringDataCreate(MsgName.StringAction.NAMEACT_PLAYER_WAVE, 0, "sound/gethp.wav", "1"));
Code:
   public static Packet StringDataCreate(this Packet stream, StringAction action, uint data, params string[] strings)
        {
            stream.InitWriter();

            stream.Write(data);//4
            stream.Write((byte)action);//8
            stream.Write(strings);//9
            stream.Finalize((ushort)NetPacketTypes._MSG_NAME);
            return stream;
        }
05/17/2019 11:46 KraHen#3
Please don't though. It's really, really annoying.
05/17/2019 15:01 forgefor#4
Quote:
Originally Posted by teroareboss1 View Post
its 2 strings... and set the UID = 0
string[] texts = new string[2];
texts[0] = "sound/train.wav";
texts[1] = "1"


Code:
client.Send(stream.StringDataCreate(MsgName.StringAction.NAMEACT_PLAYER_WAVE, 0, "sound/gethp.wav", "1"));
Code:
   public static Packet StringDataCreate(this Packet stream, StringAction action, uint data, params string[] strings)
        {
            stream.InitWriter();

            stream.Write(data);//4
            stream.Write((byte)action);//8
            stream.Write(strings);//9
            stream.Finalize((ushort)NetPacketTypes._MSG_NAME);
            return stream;
        }

Can you be more precise? please
05/17/2019 17:29 Spirited#5
Quote:
Originally Posted by forgefor View Post
Can you be more precise? please
Lol, that's pretty damn precise....
But here you go. More precise:

[Only registered and activated users can see links. Click Here To Register...]
05/17/2019 22:35 Yupmoh#6
Quote:
Originally Posted by forgefor View Post
Can you be more precise? please
They both just gave you the correct structure of the packet. You need to implement it.