Problem with dialog.
#1

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.
Reply
#2

Bump
Reply
#3

It compiles fine? Have you defined APB_WARRANT and dialogmessage?
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)