[Pomoć] Errori u Skripti Radio

Započeo antoniotno97
13. Feb. 2012. Zaključano
862
pregleda
7
postova
antoniotno97
3
Hustler
13. Feb. 2012.
Skripta koju koristim: Internet_radio
Detaljan opis problema: Kada hocu da je Compilujem izbaci nekoliko erora (Nevidim u čemu je probilem
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
D:\Users\user\Desktop\radio.pwn(53) : error 017: undefined symbol "StopAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(65) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(91) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(98) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(105) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(112) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(119) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(126) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(133) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(140) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Users\user\Desktop\radio.pwn(147) : error 017: undefined symbol "PlayAudioStreamForPlayer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

11 Errors.


Nerazumijem u čemu je problem: Plugin,Include?

Evo cjele skripte:
// ----- Radio (v0.1) - By: Jantjuh ----- //

#include

#define color_ok 0xFFFF00FF
#define color_wa 0xFF9900AA

new playing;

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}Stop the music\nClassical\nDubstep\nElectro\nHipHop\nHouse\nJazz\nMetal\nPop\nR&B\nRock", "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 == 1)
            {
playing = 0;
GameTextForPlayer(playerid, "~w~Music ~r~stopped", 3000, 3);
StopAudioStreamForPlayer(playerid);
            }
            else
{
    SendClientMessage(playerid, color_wa, "- You aren't playing music -");
            }
        }
       
        case 1:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/cl_01.mp3");
           
/*

If you navigate to:

- http://83.87.110.147/files/music/
- 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 = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/du_01.mp3");
        }
       
        case 3:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/el_01.mp3");
        }
       
        case 4:
        {
            playing = 1;
                    GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/hi_01.mp3");
        }
       
        case 5:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/ho_01.mp3");
        }
       
        case 6:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/ja_01.mp3");
        }
       
        case 7:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/me_01.mp3");
        }
       
        case 8:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/po_01.mp3");
        }
       
        case 9:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/rn_01.mp3");
        }
       
        case 10:
        {
            playing = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/ro_01.mp3");
        }
       
    }
    }
}
return 1;
}

public OnPlayerConnect(playerid)
{
playing = 0;
return 1;
}

public OnPlayerDisconnect(playerid)
{
playing = 0;
return 1;
}

public OnFilterScriptInit()
{
  print("--------------------------------");
print("----- Radio (v0.1) loaded! -----");
print("--------------------------------");
return 1;
}

// ----- End of the script ----- //
antoniotno97
3
Hustler
13. Feb. 2012.
Hoćeli iko pomoć..?
hariscoltih
3
Hustler
13. Feb. 2012.
Nije ti to definirano gore
antoniotno97
3
Hustler
13. Feb. 2012.
HarisLetteri wrote on February 13, 2012, 10:44 am:
Nije ti to definirano gore


jel misliš da stavim
#define PlayAudioStreamForPlayer
#define StopAudioStreamForPlayer
Deleted User
Obrisan korisnik
13. Feb. 2012.
antoniotno97 wrote on February 13, 2012, 10:44 am:
Nije ti to definirano gore


jel misliš da stavim
#define PlayAudioStreamForPlayer
#define StopAudioStreamForPlayer

Da mislio je na to ...
antoniotno97
3
Hustler
13. Feb. 2012.
Vegas. wrote on February 13, 2012, 10:44 am:
Nije ti to definirano gore


jel misliš da stavim
#define PlayAudioStreamForPlayer
#define StopAudioStreamForPlayer

Da mislio je na to ...

eyy.. Dečki hvala vam obojici.. poceo sam prije nekoliko dana.. Nadam se da mi nećete zamjerit.. 1
troll3d
4
Made Man
13. Feb. 2012.
Å ta vi pričate bože dragi , nemoÅ¡ tako definirati normal funkciju iz SA:MP-a  🙄

Skini 0.3d includeove.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha