Why does my radio only work for some players? -
viniciussvl - 14.11.2016
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;
}
Re: Why does my radio only work for some players? -
Yaa - 14.11.2016
What the max listenters in u radio stations if it's 4 then it's normally else idk the code is good else then the network for u players is bad
Re: Why does my radio only work for some players? -
viniciussvl - 14.11.2016
What do you mean, have a maximum of listeners? My radio has no limit of listeners, because of a forum I'm listening to
Re: Why does my radio only work for some players? -
Yaa - 14.11.2016
there a maximum of listeners for every station they (default : 24) they can buy also custom slots some radio stations have +100 slots (listeners)
Re: Why does my radio only work for some players? -
viniciussvl - 14.11.2016
But my radio has a limit of 500 listeners, I bought it, on my site it works good everyone can hear
Re: Why does my radio only work for some players? -
Yaa - 14.11.2016
then the problem isn't in the gamemode and the radio server so
there 2 things :
- Server Hosting not allow out music (due a ram eating and cpu, etc) """"if u using Linux hosted server """""
else
- You players have some problems in conx
if not that then i don't know because you code is good :а
Re: Why does my radio only work for some players? -
viniciussvl - 14.11.2016
But I tested other IP radio and it worked, so we believe there is no host.
Re: Why does my radio only work for some players? -
Yaa - 14.11.2016
damn if u test another IP So the problem on u radio server :/ i think its define it as spam (multi-connect from one IP)
Re: Why does my radio only work for some players? -
Pearson - 14.11.2016
Hello.
it's not SA-MP server problem. reason is your radio-s IP.
I had same but i changed ip and problem fixed.
Re: Why does my radio only work for some players? -
viniciussvl - 14.11.2016
So, are you going to buy another radio to change ip?