12.04.2013, 19:24
Hey, this has been bothering me for quite some time now...
Is there any difference between using a goto jump or a do-while loop? For example:
And:
Is there any difference between using a goto jump or a do-while loop? For example:
pawn Код:
RANDOMIZATION:
randomSongPick = random(sizeof(aPlayList));
if(aCurrentlyPlaying[playerid] == aPlayList[randomSongPick][0][0]) goto RANDOMIZATION;
pawn Код:
do randomSongPick = random(sizeof(aPlayList));
while(aCurrentlyPlaying[playerid] == aPlayList[randomSongPick][0][0]);