Suing a suspect with dialogs
#1

How can I charge a player and add crime details without messing up the inputtext?
I currently have this..

pawn Код:
ShowPlayerDialog(playerid, MDC_CHARGE, DIALOG_STYLE_INPUT, "LSPD MDC - Logged On | Charge", "Enter the name of the suspect.", "OK", "Cancel");

pawn Код:
if(dialogid == MDC_CHARGE && response)
{
    new sscanfid[5];
    sscanfid[3] = strval(inputtext);
    ShowPlayerDialog(playerid, MDC_CHARGE1, DIALOG_STYLE_INPUT, "LSPD MDC - Logged On | Charge", "Please fill-in the crime details.", "Enter", "Cancel");
 }
pawn Код:
if(dialogid == MDC_CHARGE1 && response)
{
     // Add input text from the dialogs here.
}
I have no idea how to save the input text of the first dialog when I have another dialog right after the first one.
Could anyone help me out?
Reply
#2

You must insert inputtext to SetPVarString. And in next dialog use GetPVarString.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)