[FilterScript] Music Instrumental [0.3D ONLY]
#9

Why do you add this in every case?
Код:
         StopAudioStreamForPlayer(playerid);
         PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
         TextDrawHideForPlayer(playerid,ListeningTo[playerid]);
         TextDrawShowForPlayer(playerid,ListeningTo[playerid]);
         TextDrawSetString(ListeningTo[playerid],"~n~");
I'd rather do it in such way:
Код:
            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: {
                    }
....
Reply


Messages In This Thread
Music Instrumental [0.3D ONLY] - by Kitten - 12.09.2011, 22:14
Re: Music Instrumental [0.3D ONLY] - by COD - 12.09.2011, 22:20
Respuesta: Music Instrumental [0.3D ONLY] - by Manuel7284 - 12.09.2011, 22:21
Re : Music Instrumental [0.3D ONLY] - by Naruto_Emilio - 12.09.2011, 22:21
Re: Music Instrumental [0.3D ONLY] - by Kitten - 12.09.2011, 23:12
Re: Music Instrumental [0.3D ONLY] - by =WoR=G4M3Ov3r - 12.09.2011, 23:21
Re: Music Instrumental [0.3D ONLY] - by The_$ - 13.09.2011, 15:23
Re: Music Instrumental [0.3D ONLY] - by Michalec - 13.09.2011, 16:25
Re: Music Instrumental [0.3D ONLY] - by laag - 13.09.2011, 16:39
Re: Music Instrumental [0.3D ONLY] - by Michalec - 13.09.2011, 16:56
Re: Music Instrumental [0.3D ONLY] - by Joe Staff - 13.09.2011, 19:46

Forum Jump:


Users browsing this thread: 2 Guest(s)