[Pomoć] Errori u Skripti Radio

Započeo antoniotno97, Februar 13, 2012, 03:55:11 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

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 <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}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[playerid] == 1)
            {
playing[playerid] = 0;
GameTextForPlayer(playerid, "~w~Music ~r~stopped", 3000, 3);
StopAudioStreamForPlayer(playerid);
            }
            else
{
    SendClientMessage(playerid, color_wa, "- You aren't playing music -");
            }
        }
       
        case 1:
        {
            playing[playerid] = 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[playerid] = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/du_01.mp3");
        }
       
        case 3:
        {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/el_01.mp3");
        }
       
        case 4:
        {
            playing[playerid] = 1;
                    GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/hi_01.mp3");
        }
       
        case 5:
        {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/ho_01.mp3");
        }
       
        case 6:
        {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/ja_01.mp3");
        }
       
        case 7:
        {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/me_01.mp3");
        }
       
        case 8:
        {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/po_01.mp3");
        }
       
        case 9:
        {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, "~w~Music ~g~started", 3000, 3);
            PlayAudioStreamForPlayer(playerid, "http://83.87.110.147/files/music/rn_01.mp3");
        }
       
        case 10:
        {
            playing[playerid] = 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[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 ----- //



Citat: HarisLetteri poslato Februar 13, 2012, 11:44:25 PRE PODNE
Nije ti to definirano gore

jel misliš da stavim

#define PlayAudioStreamForPlayer
#define StopAudioStreamForPlayer

Vegas.


Citat: Vegas. poslato Februar 13, 2012, 14:45:06 POSLE PODNE
Citat: antoniotno97 poslato Februar 13, 2012, 13:26:13 POSLE PODNE
Citat: HarisLetteri poslato Februar 13, 2012, 11:44:25 PRE PODNE
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

Å ta vi pričate bože dragi , nemoÅ¡ tako definirati normal funkciju iz SA:MP-a  ::)

Skini 0.3d includeove.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong