13.09.2011, 16:39
Why do you add this in every case?
I'd rather do it in such way:
Код:
StopAudioStreamForPlayer(playerid); PlayerPlaySound(playerid,1056,0.0,0.0,0.0); TextDrawHideForPlayer(playerid,ListeningTo[playerid]); TextDrawShowForPlayer(playerid,ListeningTo[playerid]); TextDrawSetString(ListeningTo[playerid],"~n~");
Код:
case 1: { switch(listitem) { StopAudioStreamForPlayer(playerid); PlayerPlaySound(playerid,1056,0.0,0.0,0.0); TextDrawHideForPlayer(playerid,ListeningTo[playerid]); TextDrawShowForPlayer(playerid,ListeningTo[playerid]); TextDrawSetString(ListeningTo[playerid],"~n~"); case 0: { PlayAudioStreamForPlayer(playerid, "http://pamp3.site40.net/sampfs/aggrosantoscandy.mp3"); TextDrawSetString(ListeningTo[playerid],"~b~Current Music: ~w~ Aggro Santos - Candy"); } case n: { } ....