Audio wont play !
#1

Hey!
I loaded the plugin in my server , i did everything okey.
pawn Код:
CMD:testplay(playerid, params[])
{
    Audio_SetPack("other_pack", true);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Audio_IsClientConnected(i))
            {
                new handleid = Audio_Play(playerid, 4, false, false, false);
                Audio_SetVolume(playerid, handleid, 100);
            }
        }
    }
    return 1;
}
Also on playerconnect
Audio_TransferPack(playerid);
And its just doesnt play the sounds (my client plugin is ok cuz i tested it on other servers that have audio plugin , and on the samp-server it says that the sound was loaded fine ...)
Reply
#2

Make a else after the IsPlayerAudioConnected, message the user that hte is not connected and check if ure connected first. Other servers may use other versions that the one installed on your server
Reply
#3

LOL You were right

pawn Код:
CMD:testplay(playerid, params[])
{
    Audio_SetPack("other_pack", true);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Audio_IsClientConnected(i))
            {
                new handleid = Audio_Play(playerid, 4, false, false, false);
                Audio_SetVolume(playerid, handleid, 100);
            }else{
            SendClientMessageEx(playerid,COLOR_RED,"You are not connected to the audio server ( test cmd ) !");
            }
        }
    }
    return 1;
}
And it does returns
SendClientMessageEx(playerid,COLOR_RED,"You are not connected to the audio server ( test cmd )
so I guess im not connected but wtf ?
Reply
#4

Redownload both server & client plugins.
Put the server plugin like needed;
Install the client plugin;
Check it again.


If this didnt work, perform the callback the maker made something likke "OnPlayerAudioConnect" but nt like this so check his thread for the exact one, then make a ClientMessage saying you connected. The problem might be - you connecting in delay.
Might also make OnPlayeraudioDisconnect message if you want. Let us know how it went like


(BTW can I get some REP if I finally helped you fix it out?)
Reply
#5

Well now IM Sure its a problem in my client ..
because
on the public Audio_OnClientConnect(playerid)
I got a message saying "ur connected to the audio server " bla bla bla
and when I join the server it doesnt really says that ...
Reply
#6

I think something with the SetVolume is messed, are you sure this is the way to use handleids? I think it's supposed to be like
(playerid, 4 ... )
Because the audio number is 4. Try and tell us.

By the way, it says "ur connected to the audio server" then when u use /testcmd, it says "Not connected"?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)