Szerző Téma: Radio az autoba  (Megtekintve 858 alkalommal)

Radio az autoba
« Dátum: 2012. Február 06. - 20:09:13 »
0 Show voters
Van egy ilyen Scriptem de ezeket a hibakat adja ki
netrol neztem es semmi mast nem kert pl: plusz include
C:\\Users\\Balinator\\Desktop\\GTA\\Új mappa (3)\\filterscripts\\radio.pwn(55) : error 017: undefined symbol \"StopAudioStreamForPlayer\"
C:\\Users\\Balinator\\Desktop\\GTA\\Új mappa (3)\\filterscripts\\radio.pwn(67) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
C:\\Users\\Balinator\\Desktop\\GTA\\Új mappa (3)\\filterscripts\\radio.pwn(75) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
C:\\Users\\Balinator\\Desktop\\GTA\\Új mappa (3)\\filterscripts\\radio.pwn(82) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Am velemenyek is johetnek a scriptrol
[pawn]#include <a_samp>
#define color_ok 0xFFFF00FF
#define color_wa 0xFF9900AA
new playing[MAX_PLAYERS];
main () {}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(\"/radio\", cmdtext, true, 6) == 0)
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, \"Zene\", \"{FF0000}Zene leallitasa\\nRadio1\\nMixRadio\\nRadioGaGa(Marosvasarhely)\", \"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~A Zene ~r~Lealt\", 3000, 3);
               StopAudioStreamForPlayer(playerid);
               }
               else
            {
                SendClientMessage(playerid, color_wa, \"- Nem megy a Zene -\");
               }
           }
          
           case 1:
           {
               playing[playerid] = 1;
               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
               PlayAudioStreamForPlayer(playerid, \"http://79.172.241.237:8000/radio1.mp3\");
           }
          
           case 2:
           {
               playing[playerid] = 1;
               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
               PlayAudioStreamForPlayer(playerid, \"http://87.229.73.132:8550/mixradio.mp3\");
           }
          
           case 3:
           {
               playing[playerid] = 1;
               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
               PlayAudioStreamForPlayer(playerid, \"http://www.radiogaga.ro\");
           }
          
//          case 4:
//          {
//              playing[playerid] = 1;
//              GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
//               PlayAudioStreamForPlayer(playerid, \"\");
//           }
//
//           case 5:
//           {
//               playing[playerid] = 1;
//               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
//               PlayAudioStreamForPlayer(playerid, \"\");
//           }
//
//           case 6:
//           {
//               playing[playerid] = 1;
//               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
//               PlayAudioStreamForPlayer(playerid, \"\");
//           }
//
//           case 7:
//           {
//               playing[playerid] = 1;
//               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
//               PlayAudioStreamForPlayer(playerid, \"\");
//           }
//
//           case 8:
//           {
//               playing[playerid] = 1;
//               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
//               PlayAudioStreamForPlayer(playerid, \"\");
//           }
//
//           case 9:
//           {
//               playing[playerid] = 1;
//               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
//               PlayAudioStreamForPlayer(playerid, \"\");
//           }
//              case 10:
//           {
//               playing[playerid] = 1;
//               GameTextForPlayer(playerid, \"~w~A Zene ~g~elindult\", 3000, 3);
//               PlayAudioStreamForPlayer(playerid, \"\");
//           }
//
       }
    }
}
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;
}[/pawn]

xTomiX

  • Vendég
Radio az autoba
« Válasz #1 Dátum: 2012. Február 06. - 20:24:06 »
0 Show voters
Ezt csak a 0.3d-s pawno tamogatja,valoszinuleg neked c van.
Innen letudod tolteni: http://sa-mp.com/download.php

Radio az autoba
« Válasz #2 Dátum: 2012. Február 07. - 18:18:41 »
0 Show voters
Honnan toltsem le
a szervert letoltottem de az a pawno nszerintem ugyanaz mint az enyem mert semi uj nincs benne

Radio az autoba
« Válasz #3 Dátum: 2012. Február 07. - 18:23:34 »
0 Show voters
a tied 0.3c a filek ugyanazok csak a tartalma nem! cseréld ki... am 0.3d szerverrrel fog menni is a script.

Radio az autoba
« Válasz #4 Dátum: 2012. Február 07. - 18:55:46 »
0 Show voters
Belinkelned a sajat pawnodat mert az az erzesem h hulyen csinalom a dolgot
Megkoszonnem

Radio az autoba
« Válasz #5 Dátum: 2012. Február 07. - 19:05:23 »
0 Show voters
Letöltöd a sa-mp.com ról és felülirod a szervered pawnoját a letöltött pawnoval..

Radio az autoba
« Válasz #6 Dátum: 2012. Február 07. - 19:41:57 »
0 Show voters
Na jo ez mar komoly
Letoltotem legalabb 5X a sa-mp.com-rol apawnot ujratetem meg minden de az Isternert se akarja lefuttatni
nem akarja valaki feltolteni a pawno mert en nem ertem
Lassan megcsinaltam egy rendes szervert es egy ilyen radio kifog rajtam na ne

Alfonso Carter

  • Vendég
Radio az autoba
« Válasz #7 Dátum: 2012. Február 07. - 19:47:01 »
0 Show voters
Nálam is hibás :S

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal