05.10.2010, 12:11
You can't play music until audio client is connected. Use Audio_OnPlayerConnect to start the music.
|
[19:39:50] ------------------------------ [19:39:50] SA-MP Audio Plugin initialized [19:39:50] ------------------------------ [19:40:08] Connecting to 127.0.0.1:7777... [19:40:08] Server closed the connection (Name not connected) [19:40:08] Attempting reconnection (1 of 5)... [19:40:48] Connecting to 127.0.0.1:7777... [19:40:48] Server closed the connection (Name not connected) [19:40:48] Attempting reconnection (2 of 5)... [19:41:08] Connecting to 127.0.0.1:7777... [19:41:08] Server closed the connection (Name not connected) [19:41:08] Attempting reconnection (3 of 5)... [19:42:47] Connecting to 127.0.0.1:7777... [19:42:47] Server closed the connection (Name not connected) [19:42:47] Attempting reconnection (4 of 5)... [19:43:07] Connecting to 127.0.0.1:7777... [19:43:07] Server closed the connection (Name not connected) [19:43:07] Attempting reconnection (5 of 5)... [19:44:55] Connecting to 127.0.0.1:7777... [19:44:55] Server closed the connection (Name not connected) |
|
Please help me! When in the include i remove pawn Код:
How can i fix it?? I need it very fast :S My os: debian 32-bit. I tried to compile the plugin on debian, but same prob. Thanks. EDIT: Im sure it is because of this function: pawn Код:
|
public OnFilterScriptInit()
{
// .....
Audio_SetPack("mudzin", true);
// .....
}
public Audio_OnClientConnect(playerid)
{
Audio_TransferPack(playerid);
return 1;
}
public Audio_OnSetPack(audiopack[])
{
for(new playerID; playerID < maxPlayers; playerID++)
if(IsPlayerConnected(playerID))
Audio_TransferPack(playerID);
return 1;
}
[mudzin] 7766 = mudzin.mp3
audiopacks .....mudzin ..........mudzin.mp3
|
[default_pack] 1 = Schiffshorn.mp3 2 = Telefon.mp3 3 = DingDong.mp3 |
|
Audio_SetPack("default_pack", true); |