error 029: invalid expression, assumed zero
#4

PHP код:
new IsPlaying[MAX_PLAYERS]; // up top in your script somewhere
CMD:ehr(playerid

    if(
PlayerLogged[playerid] == 0) return 1;
    if(
IsPlaying[playerid] == 0)
    { 
         
PlayAudioStreamForPlayer(playerid"http://stream.europeanhitradio.lv"); 
         
IsPlaying[playerid] = 1;
    } 
    else 
    { 
         
StopAudioStreamForPlayer(playerid); 
         
IsPlaying[playerid] = 0;
    } 
    return 
1

(The indenting might be rough, did this on my phone)
Reply


Messages In This Thread
error 029: invalid expression, assumed zero - by Mill - 07.04.2018, 13:15
Re: error 029: invalid expression, assumed zero - by rfr - 07.04.2018, 13:50
Re: error 029: invalid expression, assumed zero - by Mill - 07.04.2018, 13:57
Re: error 029: invalid expression, assumed zero - by CantBeJohn - 07.04.2018, 14:14
Re: error 029: invalid expression, assumed zero - by Mill - 07.04.2018, 14:21

Forum Jump:


Users browsing this thread: 2 Guest(s)