01.09.2012, 13:27
Hey there, I have a problem with the dialog box. when I type /bandana it should open a dialog menu to chose what bandana color to wear, but the menu won't appear. Here let me show you the ondialogresponse code
And i have this problem not only on this script, but also on others. It is strange that on some scripts, the commands work perfectly...
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(response) { switch(dialogid) { case DIALOG_BANDANA: { switch(listitem) { case 0: { SetPlayerAttachedObject( playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 1: { SetPlayerAttachedObject( playerid, 0, 18913, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 2: { SetPlayerAttachedObject( playerid, 0, 18914, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 3: { SetPlayerAttachedObject( playerid, 0, 18915, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 4: { SetPlayerAttachedObject( playerid, 0, 18916, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 5: { SetPlayerAttachedObject( playerid, 0, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 6: { SetPlayerAttachedObject( playerid, 0, 18918, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 7: { SetPlayerAttachedObject( playerid, 0, 18891, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 8: { SetPlayerAttachedObject( playerid, 0, 18892, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 9: { SetPlayerAttachedObject( playerid, 0, 18893, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 10: { SetPlayerAttachedObject( playerid, 0, 18894, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 11: { SetPlayerAttachedObject( playerid, 0, 18895, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754); } case 12: { RemovePlayerAttachedObject(playerid, 0); } } } } } return 1; }