Jump to content
  • 0

Problema radio


Fanta

Question

Problema intalnita (descriere):Am creat o zona unde sa cante radio. Totul bine, cand ajung in zona respectiva porneste radio, totul perfect. Cand creez inca o zona unde sa cante acelasi radio imi da errorile de mai jos
Ero(area / rile) / warning-(ul / urile):

-error 029: invalid expression, assumed zero
-warning 215: expression has no effect
-error 001: expected token: ";", but found "if"

Liniile de cod / sursa / script-ul(obligatoriu):

    if(IsPlayerInRangeOfPoint(playerid,10,1294.8019,-1874.4962,13.5888))
    {
    if(!GetPVarInt(playerid,"musica"))
    {
     SetPVarInt(playerid,"musica",1);
     PlayAudioStreamForPlayer(playerid, "http://asculta.radiotaraf.com:7100/", 1294.8019,-1874.4962,13.5888, 20, 1);
     }
     }
    else
    {
     if(GetPVarInt(playerid,"musica"))
    {
    DeletePVar(playerid,"musica");
    StopAudioStreamForPlayer(playerid);
    }
     }
      else if(IsPlayerInRangeOfPoint(playerid,10,1394.8019,-1274.4962,16.5888))
    {
    if(!GetPVarInt(playerid,"musica"))
    {
     SetPVarInt(playerid,"musica",1);
     PlayAudioStreamForPlayer(playerid, "http://asculta.radiotaraf.com:7100/", 1394.8019,-1274.4962,16.5888, 20, 1);
     }
     }
    else
    {
     if(GetPVarInt(playerid,"musica"))
    {
    DeletePVar(playerid,"musica");
    StopAudioStreamForPlayer(playerid);
    }
     }
    return 1;
}


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: Da.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Arata linia, cand iti da eroare scrie ceva de genul asta    (4321)  -error expected .....

Si specifica care este acea linie te duci la ea cu ctrl+g

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Am incercat sa il fac asa

    if(IsPlayerInRangeOfPoint(playerid,10,1294.8019,-1874.4962,13.5888))
    {
    if(!GetPVarInt(playerid,"musica"))
    {
     SetPVarInt(playerid,"musica",1);
     PlayAudioStreamForPlayer(playerid, "http://asculta.radiotaraf.com:7100/", 1294.8019,-1874.4962,13.5888, 20, 1);
     }
     }
    else
    {
     if(GetPVarInt(playerid,"musica"))
    {
    DeletePVar(playerid,"musica");
    StopAudioStreamForPlayer(playerid);
    }
     }
    if(IsPlayerInRangeOfPoint(playerid,10,1499.6000000,-699.4000200,90.2000000))
    {
    if(!GetPVarInt(playerid,"musica"))
    {
     SetPVarInt(playerid,"musica",1);
     PlayAudioStreamForPlayer(playerid, "http://asculta.radiotaraf.com:7100/", 1499.6000000,-699.4000200,90.2000000, 20, 1);
     }
     }
    else
    {
     if(GetPVarInt(playerid,"musica"))
    {
    DeletePVar(playerid,"musica");
    StopAudioStreamForPlayer(playerid);
    }
     }
    return 1;

 

Dar cand ajung in zona 1499.6000000,-699.4000200,90.2000000 imi porneste radio-ul de 100 de ori 

sa-mp-011.png

Edited by Fanta
Link to comment
Share on other sites

  • 0
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.