- 0
Problema radio
-
Similar Content
-
- 0 answers
- 21 views
-
- 0 replies
- 31 views
-
- 3 answers
- 78 views
-
- 5 answers
- 64 views
-
- 1 reply
- 28 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Fanta
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