SA-MP Forums Archive
Problem with 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: Problem with dialog. (/showthread.php?tid=332941)



Problem with dialog. - printer - 09.04.2012

pawn Код:
new dialogmessage[400];
    new query[128];
    format(query, 128, "SELECT `Reporter`, `Description`, `Charges` FROM `warrants` WHERE `WarrantID` = '%d'", warrantid);
    mysql_store_result();
    if(!(!mysql_num_rows()))
    {
        new result[128], data[3][128];
        while(mysql_fetch_row_format(result,"|"))
        {
            split(result,data,'|');
            format(dialogmessage, sizeof(dialogmessage), "{FF6347} - LSPD Warrant System -\n {FFFFFF} Warrant #%d \n Reporter: %s \n Suspect Description: %s \n Charges: %s", warrantid, data[0], data[1], data[2]);
    }
        }
    mysql_free_result();
    ShowPlayerDialog(playerid, APB_WARRANT, DIALOG_STYLE_MSGBOX, "LSPD Warrant System", dialogmessage, "Ok", "Exit");
When I do the command it doesn't show the dialog.


Re: Problem with dialog. - printer - 09.04.2012

Bump


Re: Problem with dialog. - Jack.7331 - 09.04.2012

It compiles fine? Have you defined APB_WARRANT and dialogmessage?


Re: Problem with dialog. - printer - 10.04.2012

pawn Код:
#define APB_WARRANT 1000
dialogmessage's in the code.