03.12.2013, 15:23
Hello sa-mp forum!
I trying to make radio system with listeners..
But it is buggy.. when player change radio station, the count of listeners are same..
Sorry for my bad English.
Thanks for any reply/help!
I trying to make radio system with listeners..
pawn Код:
public OnDialogResponse(playerid, dialogid, response)
{
switch(dialogid)
{
case RADIO_STATIONS:
{
switch(listitem)
{
case 0: //HipHop
{
//Play music...
radio1++;
}
case 1: //Country
{
//Play music...
radio2++;
}
case 2: //Oldies
{
//Play music...
radio3++;
}
}
}
}
return 1;
}
CMD:radio(playerid, params[])
{
new r_str[200];
format(r_str, sizeof(r_str), "Radio HipHop [%i listeners]\nRadio Country [%i listeners]\nRadio Oldies [%i listeners]", radio1, radio2, radio3);
ShowPlayerDialog(playerid, RADIO_STATIONS, DIALOG_STYLE_LIST, "Radio stations:", r_str, "Stream", "Close");
return 1;
}
Sorry for my bad English.
Thanks for any reply/help!