28.12.2011, 03:05
'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:
A little advice: don't reply if you have no clue whatsoever what you're talking about.
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;
}
A little advice: don't reply if you have no clue whatsoever what you're talking about.