11.08.2018, 19:06
loops in samp are weird. it's supposed to show the client message if the dialog is empty (no players with wanted level) but it shows up no matter what. what is going on? :<
Код:
if(GetPlayerWantedLevel(i) > 0) { format(strx, 64, "%s (ID: %d)\n", name, i); strcat(stry, strx); ShowPlayerDialog(playerid, boop1, DIALOG_STYLE_LIST, "wanted", stry, "OK", ""); } else if(GetPlayerWantedLevel(i) < 1) { SendClientMessage(playerid, -1, "boop no wanted"); break; }