05.08.2010, 14:55
The first list item is ID 0
Example:
Dialog response:
Example:
Код:
#define Car 0 ShowPlayerDialog(playerid,Cars,DIALOG_STYLE_LIST,"Choose your Car","Bullet\r\nTurismo\r\nSuper GT","Accept","Cancel");
Код:
if(dialogid == Cars) { if(response) { if(listitem == 0) { Bullet } if(listitem == 1) { Turismo } if(listitem == 2) { Super GT } } }