Sziasztok!
Letöltöttem pár rádió szkriptet, irtam bele pár rádió ip-t, át akartam megint alakítani amx-be, de nem engedi a pawno.
Itt a szkript:
[pawn]// ----- Radio (v0.1) - By: Jantjuh ----- //
#include <a_samp>
#define color_ok 0xFFFF00FF
#define color_wa 0xFF9900AA
new playing[MAX_PLAYERS];
main () {}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(\"/music\", cmdtext, true, 6) == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, \"Music: (Script & audio server by: Jantjuh)\", \"{FF0000}Zene megállít\\nNeoFM\\nMixRadio\\nDiscoShit\\nClassFM\\nDJ\\nRock\\nRadioFace\\nRiseFM\\nRádió88\\nRádió1\", \"Choose\", \"Exit\");
return 1;
}
if (strcmp(\"/nrg\", cmdtext, true, 6) == 0)
{
new Float:x;
new Float:y;
new Float:z;
new nrg;
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
nrg = AddStaticVehicle(522, Float:x, Float:y, Float:z, 10, -1, -1);
PutPlayerInVehicle(playerid, nrg, 0);
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1:
{
if(!response)
{
return 1;
}
switch(listitem)
{
case 0:
{
if(playing[playerid] == 1)
{
playing[playerid] = 0;
GameTextForPlayer(playerid, \"~w~Rádió ~r~Kikapcsolva\", 3000, 3);
StopAudioStreamForPlayer(playerid);
}
else
{
SendClientMessage(playerid, color_wa, \"- Nem hallgatsz zenét -\");
}
}
case 1:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~NeoFM-et ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://91.82.85.41:8080/;stream\");
/*
If you navigate to:
-
http://83.87.110.147/files/\'>
http://83.87.110.147/files/music/\'>
http://83.87.110.147/files/\'>
http://83.87.110.147/files/music/
-
http://83.87.110.147/files/\'>
http://83.87.110.147/files/
or
-
http://83.87.110.147/ The webserver will return: \"Not Found\".
This does NOT mean the .mp3 files aren\'t available.
The .mp3 files are hosted 24/7 at a professional webserver system.
The reason why there isn\'t a .com domain is because it is not needed.
That is why it is just the IP address of the webserver.
Any attempt to hack or take down the webserver will be logged.
Also, your IP address will be reported to the France minister of internet crime and your ISP.
*/
}
case 2:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~MixRadio-t ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://savetofile.net:8450/;stream\");
}
case 3:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~DiscoShit-et ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://212.108.220.144:1039/stream.mp3\");
}
case 4:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~ClassFM-et ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://91.82.85.41:9216/;stream\");
}
case 5:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~DJ-Rádiót ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://streaming.virtualpro.hu:9080/;stream\");
}
case 6:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~RockVilág-ot ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://94.199.181.124:8800/rockvilag2\");
}
case 7:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~RadioFace-t ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://www.radioface.hu/radio_face.m3u\");
}
case 8:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~RiseFM-et ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://risefm.hu/inc/balaton_playlist.m3u/\");
}
case 9:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~Rádió88-at ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://stream.radio88.hu:8000\");
}
case 10:
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~Rádió1-et ~g~hallgatod\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"
http://195.70.35.172:8000\");
}
}
}
}
return 1;
}
public OnPlayerConnect(playerid)
{
playing[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid)
{
playing[playerid] = 0;
return 1;
}
public OnFilterScriptInit()
{
print(\"--------------------------------\");
print(\"----- Radio (v0.1) loaded! -----\");
print(\"--------------------------------\");
return 1;
}
// ----- End of the script ----- //[/pawn]
És itt a hibaüzenet:
[pawn]D:\\Zsolti\\samp\\radio.pwn(53) : error 017: undefined symbol \"StopAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(65) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(91) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(98) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(105) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(112) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(119) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(126) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(133) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(140) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Zsolti\\samp\\radio.pwn(147) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
11 Errors.
[/pawn]
Lécci segítsetek! Fontos lenne!
Köszi!