29.04.2014, 16:40
Well, been experimenting more :/ Anyway, I was wondering? Is it a good idea to use a loop & if statement inside dialogs?
FOr example:
How would I be able to add a response for this?
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");