Loop + dialog + if statement, good idea?
#1

Well, been experimenting more :/ Anyway, I was wondering? Is it a good idea to use a loop & if statement inside dialogs?

FOr example:

pawn Код:
new BuildString[128], RealString[528];
PLoop(p)
{
    if(P_INFO[p][PAdmin] >= 1)
    {
        format(BuildString, sizeof(BuildString), " - %s(%d) is a level %d admin.", FuckUnderscore(PlayerName(playerid)), p, P_INFO[p][PAdmin]);
        strcat(RealString, BuildString);
    }
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Admins online, click on mesage them", RealString, "MSG", "GTFO");
How would I be able to add a response for this?
Reply


Messages In This Thread
Loop + dialog + if statement, good idea? - by Brandon_More - 29.04.2014, 16:40
Re: Loop + dialog + if statement, good idea? - by Ada32 - 29.04.2014, 16:43
Re: Loop + dialog + if statement, good idea? - by RajatPawar - 29.04.2014, 16:43
Re: Loop + dialog + if statement, good idea? - by Brandon_More - 29.04.2014, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)