SA-MP Forums Archive
Formatting 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: Formatting Dialog (/showthread.php?tid=306819)



Formatting Dialog - HondaCBR - 28.12.2011

DELETE THIS, DOESNT WORK


Re: Formatting Dialog - Ballu Miaa - 28.12.2011

Use the model id of the dialog Under OnPlayerDialogResponse callback. Add List the Item's response!


DELETE THIS, DOESNT WORK - HondaCBR - 28.12.2011

DELETE THIS, DOESNT WORK


Re: Formatting Dialog - MP2 - 28.12.2011

'inputtext' contains the string of the item, so you could use that. You didn't explain it very clearly, so I'm just assuming that's what you're after. Example:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Select One", "Infernus\nCheetah\nSultan", "Ok", "Cancel");

public OnDialogResponse(...)
{
    if(dialogid == 1 && response)
    {
        if(!strcmp(inputtext, "infernus", true))
        {
            // They selected 'infernus'
        }
    }
    return 1;
}



Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Use the model id of the dialog Under OnPlayerDialogResponse callback. Add List the Item's response!
A little advice: don't reply if you have no clue whatsoever what you're talking about.


DELETE THIS, DOESNT WORK - HondaCBR - 01.01.2012

DELETE THIS, DOESNT WORK