31.08.2010, 13:38
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == /*first dialog ID*/)
{
if(listitem == /*listitemID of the "Select by Name", they start with 0*/)
{
if(response)
{
ShowPlayerDialog(playerid, ID, DIALOG_STYLE_INPUT, "Mobile Data Computer", "Insert the Player Name ((ID))", "Ok", "Log Out");
}
}
}
else if(dialogid == /* id of second*/)
{
if(response)
{
if(!IsPlayerConnected(strval(inputtext)) return 1;
new string[100];
format(string, sizeof(string), "Data: %d", PlayerData[strval(inputtext)][pCarWarn]);
ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Mobile Data Computer", string, "Ok", "Log out");
}
}
return 1;
}