Why does my radio only work for some players?
#1

Hello everyone, I'm having problems with my radio, when I type the / radio command it does not activate, and I asked some players to test it and it worked, others have reported that it did not work, type 40 players only 5 can listen to the radio in the game , What can it be?

pawn Код:
#include a_samp
#include zcmd

#define Radio 6969
#define Relaxed1  0xEBFF00AA


public OnFilterScriptInit()
{
    print(" On Fs");
    return 1;
}

CMD:radio(playerid){
    ShowPlayerDialog(playerid,Radio,DIALOG_STYLE_LIST,"Radio","{00F5FF}ON\nOFF","Selecionar","Cancelar");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
        if(dialogid == Radio){
            if(response){
                switch(listitem){
                    case 0:{
                        PlayAudioStreamForPlayer(playerid,"http://107.161.123.146:26342");
                        SendClientMessage(playerid,Relaxed1,"ON!");
                    }
                    case 1:{
                        StopAudioStreamForPlayer(playerid);
                        SendClientMessage(playerid,Relaxed1,"OFF!");
                    }
                }
            }
        }
        return false;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)