20.11.2013, 11:21
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == your dialog name the one u defined)
{
if(response)
{
if(listitem == 0) // if he clicked the 1st option
{
// what you want to show him
}
if(listitem == 1)
{
// what you want to show him
}
if(listitem == 2)
{
// what you want to show him // u can use case if u want
}
}
return 1;
}
return 0; // return 0 as per samp wiki
}