Author Topic: I need a bit of help with sounds. (SOLVED)  (Read 1932 times)

0 Members and 1 Guest are viewing this topic.

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
I need a bit of help with sounds. (SOLVED)
« on: September 22, 2013, 09:17:31 PM »
So I'm trying to make a rageban mod that gives a slightly different approach to your stock-standard ban, but I need it to play a sound too.

I tried stealing the umsg that ulx.playsound uses, but it just spits out errors into the server console.

I've tried looping through all players and making them play the sound I want, I've tried forcing them to run play sound/gtfo.mp3, i've tried everything a lot of things and I get errors or no sound.

Can I get some assistance?


The code is pretty much the same as what you would see in the default ban module, with an additional sound file playing. The base functions still work, just the sound wont play.
« Last Edit: September 22, 2013, 09:25:52 PM by rainbow Dash »
Uhm, whats a signature?

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: I need a bit of help with sounds.
« Reply #1 on: September 22, 2013, 09:19:07 PM »
If it helps, here is a screenshot of my Console errors.

http://puu.sh/4y5a8.png

(this is the test part, therefor it is using kick and not ban.)
Uhm, whats a signature?

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: I need a bit of help with sounds.
« Reply #2 on: September 22, 2013, 09:25:31 PM »
Oh hey, disregard... as per usual as soon as I ask for help i solve the issue myself.

Screw Convars, ill just hardcode the file.
Uhm, whats a signature?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: I need a bit of help with sounds. (SOLVED)
« Reply #3 on: September 22, 2013, 11:11:06 PM »
http://en.wikipedia.org/wiki/Rubber_duck_debugging


By favorite kind of code debugging!