Formatting Dialog
#1

DELETE THIS, DOESNT WORK
Reply
#2

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

DELETE THIS, DOESNT WORK
Reply
#4

'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.
Reply
#5

DELETE THIS, DOESNT WORK
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)