06.02.2015, 10:44
ola galera, fiz esse FS mais nгo sei muito bem o porque nгo esta funfando:
Код:
#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT #define Dance 1464 public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/dancas", true) == 0) { ShowPlayerDialog(playerid, Dance, DIALOG_STYLE_LIST, "Sistema De Animes de Danзas", "Estilo 1\nEstilo 2\nEstilo 3\nEstilo 4\nEstilo 5\nEstilo 6\nEstilo 7\nEstilo 8\nEstilo 9\nEstilo 10\nEstilo 11\nEstilo 12\nEstilo 13\nParar Anime", "Selecionar", "Cancelar"); return 1; } return false; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == Dance) if(response) { if(listitem == 0) { ApplyAnimation(playerid, "DANCING", "bd_clap", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 1) { ApplyAnimation(playerid, "DANCING", "bd_clap1", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 2) { ApplyAnimation(playerid, "DANCING", "dance_loop", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 3) { ApplyAnimation(playerid, "DANCING", "DAN_Down_A", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 4) { ApplyAnimation(playerid, "DANCING", "DAN_Left_A", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 5) { ApplyAnimation(playerid, "DANCING", "DAN_Loop_A", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 6) { ApplyAnimation(playerid, "DANCING", "DAN_Right_A", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 7) { ApplyAnimation(playerid, "DANCING", "DAN_Up_A", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 8) { ApplyAnimation(playerid, "DANCING", "dnce_M_a", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 9) { ApplyAnimation(playerid, "DANCING", "dnce_M_b", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 10) { ApplyAnimation(playerid, "DANCING", "dnce_M_c", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 11) { ApplyAnimation(playerid, "DANCING", "dnce_M_d", 4.0, 1, 1, 1, 1, 0); return 1; } if(listitem == 12) { ApplyAnimation(playerid, "DANCING", "dnce_M_e", 4.0, 1, 1, 1, 1, 0); return 1; } } return 1; } #endif