28.02.2014, 12:04
when i open picture of dialog there are written 2 sentences at the first sentence theres writtened test1 and at the second sentence there is test 2 when i click test2 the dialog tab is closing can u say why?
code
code
Код:
#include <a_samp> #define CLS1 12 #if defined FILTERSCRIPT #else #endif public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/dialogshow", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,CLS1,DIALOG_STYLE_LIST,"Airchiet Damxmare Dzala","test1\ntest2","Select","Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(response) { switch(dialogid == CLS1) { case 0: { GivePlayerWeapon(playerid,31,500); } case 1: { GivePlayerWeapon(playerid,25,250); } } } return 0; }