SA-MP Forums Archive
MySQL in a dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL in a dialog (/showthread.php?tid=303093)



MySQL in a dialog - GamingTurf - 11.12.2011

I am currently trying to get a name of a Group into a Dialog (List).

This is my current code:

pawn Код:
new showit[800];
    //new a1[128], a2[128], a3[128], a4[128], a5[128];
    format(showit, sizeof(showit), "%s\n%s\n%s\n%s\n%s\n", AInfo[1][aName], AInfo[2][aName], AInfo[3][aName], AInfo[4][aName], AInfo[5][aName]);
    ShowPlayerDialog(playerid, aselect, DIALOG_STYLE_LIST, "Select a group:", showit, "Select", "Cancel");
I type the command in-game, and it pops up in a large dialog, however there are no rows - Plus, when you click the EMPTY dialog, GTA crashes.

What is wrong with that command?