Audio Plugin Errors
#1

Alright so I just installed the latest's Incognito's audio plugin on my server and when I open the server i see the following. https://sampforum.blast.hk/showthread.php?tid=82162



Код:
*** Streamer Plugin v2.6.1 by Incognito loaded ***

[09:36:42]   Loaded.
[09:36:42]  Loaded 3 plugins.

[09:36:42] 
[09:36:42] Filterscripts
[09:36:42] ---------------
[09:36:42]   Loading filterscript 'audio.amx'...
[09:36:42] OnFilter
[09:36:42] *** Audio Plugin: Started TCP server on port 7777
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.mp3" for CRC check
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.ogg" for CRC check
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.wav" for CRC check
[09:36:42] *** Audio_SetPack: Audio pack set to "default_pack" (transferable and automated)
[09:36:42]   Loading filterscript 'buttons.amx'...
[09:36:42]   Loading filterscript 'vactions.amx'...
[09:36:42]   Loading filterscript 'neons.amx'...
[09:36:42] 
--------------------------------------
[09:36:42] Neon System Loaded...
[09:36:42] --------------------------------------

[09:36:42]   Loaded 4 filterscripts.

[09:36:42]  
[09:36:42]  ======================================= 
[09:36:42]  |                                     | 
[09:36:42]  |        YSI version 1.03.0011        | 
[09:36:42]  |        By Alex "******" Cole        | 
[09:36:42]  |                                     | 
[09:36:42]  |  Checking the latest YSI version..  | 
[09:36:42]  |                                     | 
[09:36:42]  ======================================= 
[09:36:42]  
[09:36:42] OnGameo
[09:36:42] onfoot_rate = 40  (int, read-only)
[09:36:42] incar_rate = 40  (int, read-only)
[09:36:42] weapon_rate = 40  (int, read-only)
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.mp3" for CRC check
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.ogg" for CRC check
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.wav" for CRC check
[09:36:42] *** Audio_SetPack: Audio pack set to "default_pack" (transferable and automated)
Can anyone help me as of what is wrong with the Audio plugin?
Код:
[09:36:42] *** Audio Plugin: Started TCP server on port 7777
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.mp3" for CRC check
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.ogg" for CRC check
[09:36:42] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.wav" for CRC check
[09:36:42] *** Audio_SetPack: Audio pack set to "default_pack" (transferable and automated)
Reply
#2

Missing audiopacks folder.Extract audiopacks folder to your samp server directory from the audio plugin package.
Reply
#3

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
Missing audiopacks folder.Extract audiopacks folder to your samp server directory from the audio plugin package.
I did they are there.
Reply
#4

Quote:
Originally Posted by Johnny_Robins
Посмотреть сообщение
I did they are there.
Check your audio.ini, change that example.mp3 to the name of the song/audio file you placed in that directory.Do that for ogg and wav files too.
Reply
#5

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
Check your audio.ini, change that example.mp3 to the name of the song/audio file you placed in that directory.Do that for ogg and wav files too.
The audio plugin is gonna work for a type of /setstation command using stations from shoutcast
Reply
#6

Quote:
Originally Posted by Johnny_Robins
Посмотреть сообщение
The audio plugin is gonna work for a type of /setstation command using stations from shoutcast
Did you do what i said in my previous post ? Are you still getting those errors in your server_log ? If you just wish to play internet radio stations from Shoutcast, then use PlayAudioStreamForPlayer and StopAudioStreamForPlayer 0.3d natives, you don't need the audio plugin for that.
Reply
#7

Can you help me with this then pleasE?

Код:
CMD:radio(playerid, params[]) {
    if(!IsPlayerInAnyVehicle(playerid)) {
		return SendClientMessageEx(playerid, COLOR_GRAD2, "You must be in a car to use a car radio.");
	}
    else if(isnull(params)) {
        SendClientMessageEx(playerid, COLOR_GRAD2, "USAGE: /setstation [station] (0 - no station)");
        SendClientMessageEx(playerid, COLOR_GRAD2, "(1) .977 Hits Channel - (2) 181.FM: The Buzz - (3) 181.FM: Blues - (4) 181.FM: Classic Hits - (5) 181.FM: Kickin' Country");
        SendClientMessageEx(playerid, COLOR_GRAD2, "(6) 181.FM: Highway 181 - (7) COOL93 - (8) TechnoBase.FM - (9) Dubplate.FM - (10) Word of Truth Radio");
        SendClientMessageEx(playerid, COLOR_GRAD2, "(11) SKY.FM: Jazz - (12) MovidaMix - (13) #MUSIK.EXTREME - (14) SKY.FM: New Age - (15) .977 The Hitz Channel");
        SendClientMessageEx(playerid, COLOR_GRAD2, "(16) KCRW ALL NEWS - (17) HOT 108 JAMZ - (18) Reggae141 - (19) RMF FM - (20) French Kiss FM");
		SendClientMessageEx(playerid, COLOR_GRAD2, "(21) DEFJAY - (22) 181.FM Hairband - (23) Idobi Radio");
        return 1;
    }

    new string[128], station[256];
	switch(strval(params)) {
		case 0: {
			format(string, sizeof(string), "* %s turns off the radio.",GetPlayerNameEx(playerid));
			foreach(Player, i) if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid) && Audio_IsClientConnected(i)){
				Audio_Stop(i, stationidp[i]);
				stationidp[i] = 0;
				stationidv[GetPlayerVehicleID(playerid)] = 0;
			}
		}
		case 1: {
			format(string, sizeof(string), "* %s changes the station to .977.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1415249");
			stationidv[GetPlayerVehicleID(playerid)] = 1;
		}
		case 2: {
			format(string, sizeof(string), "* %s changes the station to 181.FM - The Buzz.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1415249");
			stationidv[GetPlayerVehicleID(playerid)] = 2;
		}
		case 3: {
			format(string, sizeof(string), "* %s changes the station to 1.FM - Blues.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1270282");
			stationidv[GetPlayerVehicleID(playerid)] = 3;
		}
		case 4: {
			format(string, sizeof(string), "* %s changes the station to 181.FM - Classic Hitss.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1628721");
			stationidv[GetPlayerVehicleID(playerid)] = 4;
		}
		case 5: {
			format(string, sizeof(string), "* %s changes the station to 181.FM - Kickin' Country.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
			stationidv[GetPlayerVehicleID(playerid)] = 5;
		}
		case 6: {
			format(string, sizeof(string), "* %s changes the station to .181.FM - Highway 181.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1628932");
			stationidv[GetPlayerVehicleID(playerid)] = 6;
		}
		case 7: {
			format(string, sizeof(string), "* %s changes the station to COOL93.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1756658");
			stationidv[GetPlayerVehicleID(playerid)] = 7;
		}
		case 8: {
			format(string, sizeof(string), "* %s changes the station to TechnoBase.FM.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200");
			stationidv[GetPlayerVehicleID(playerid)] = 8;
		}
		case 9: {
			format(string, sizeof(string), "* %s changes the station to Dubplate.FM.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2057197");
			stationidv[GetPlayerVehicleID(playerid)] = 9;
		}
		case 10: {
			format(string, sizeof(string), "* %s changes the station to Word of Truth Radio.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=18695");
			stationidv[GetPlayerVehicleID(playerid)] = 10;
		}
		case 11: {
			format(string, sizeof(string), "* %s changes the station to Absolutley Smooth Jazz - SKY.FM.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=412093");
			stationidv[GetPlayerVehicleID(playerid)] = 11;
		}
		case 12: {
			format(string, sizeof(string), "* %s changes the station to MovidaMix.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=181367");
			stationidv[GetPlayerVehicleID(playerid)] = 12;
		}
		case 13: {
			format(string, sizeof(string), "* %s changes the station to #MUSIK.EXTREME.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071");
			stationidv[GetPlayerVehicleID(playerid)] = 13;
		}
		case 14: {
			format(string, sizeof(string), "* %s changes the station to New Age - SKY.FM",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=412093");
			stationidv[GetPlayerVehicleID(playerid)] = 14;
		}
		case 15: {
			format(string, sizeof(string), "* %s changes the station to .977 The Hitz Channel.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356");
			stationidv[GetPlayerVehicleID(playerid)] = 15;
		}
		case 16: {
			format(string, sizeof(string), "* %s changes the station to KCRW ALL NEWS.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279013");
			stationidv[GetPlayerVehicleID(playerid)] = 16;
		}
		case 17: {
			format(string, sizeof(string), "* %s changes the station to HOT 108 JAMZ.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
			stationidv[GetPlayerVehicleID(playerid)] = 17;
		}
		case 18: {
			format(string, sizeof(string), "* %s changes the station to Raggae141.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855");
			stationidv[GetPlayerVehicleID(playerid)] = 18;
		}
		case 19: {
			format(string, sizeof(string), "* %s changes the station to RMF FM.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1116397");
			stationidv[GetPlayerVehicleID(playerid)] = 19;
		}
		case 20: {
			format(string, sizeof(string), "* %s changes the station to French Kiss FM.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2057543");
			stationidv[GetPlayerVehicleID(playerid)] = 20;
		}
		case 21: {
			format(string, sizeof(string), "* %s changes the station to DEFJAY.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=616366");
			stationidv[GetPlayerVehicleID(playerid)] = 21;
		}
		case 22: {
			format(string, sizeof(string), "* %s changes the station to 181.FM Hairband Radio.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://38.107.220.164:8014");
			stationidv[GetPlayerVehicleID(playerid)] = 22;
		}
		case 23: {
			format(string, sizeof(string), "* %s changes the station to Idobi Radio.",GetPlayerNameEx(playerid));
			format(station, sizeof(station), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=847066");
			stationidv[GetPlayerVehicleID(playerid)] = 23;
		}
		default: return SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid station specified.");
	}

    ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

    foreach(Player, i) if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid) && Audio_IsClientConnected(i)) {
		Audio_Stop(i, stationidp[i]);
		stationidp[i] = Audio_PlayStreamed(i, station, false, true, false);
		Audio_SetVolume(i, stationidp[i], 30);
    }
    return 1;
}
Reply
#8

Bump still need help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)