English How can I play sounds using tables

3 replies
Goto Page
To the start Previous 1 Next To the start
Up
ERMEHGEWD
User
Offline Off
Can you guys teach me how do i play sounds by using tables
IMG:http://www.auplod.com/u/poauld8a525.png
16.02.17 12:44:38 pm
Up
Onikwuthkro
User
Offline Off
Code:
1
2
3
4
5
6
7
a = {"a.ogg", "b.ogg"}

function whatever(p)
     parse ("sv_sound /"..a[p])
end

whatever(1)
16.02.17 12:48:56 pm
Up
PlookerBooy
GAME BANNED
Offline Off
Code:
1
2
3
4
5
6
7
8
9
sounds = {"a.ogg", "b.ogg"}

function whatever()
     for k, v in pairs(sounds) do
          parse("sv_sound \"..v);
     end
end

whatever()
Nothing realy..
16.02.17 02:15:01 pm
Up
ERMEHGEWD
User
Offline Off
Thank you guys for your help
IMG:http://www.auplod.com/u/poauld8a525.png
To the start Previous 1 Next To the start