[move]Salut baieti[/move] Am si eu o problema am facut la o comanda cu dialog si cand scriu comanda numi apare dialog va rog frumos care stiti ajutatima si pe mine. [pawn]#define DIALOGDVEH 232111123 #define DIALOGMODEL 9021 public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) switch(dialogid) { case DIALOGDVEH: { if(response) { switch(listitem) { case 1: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s",CarInfo[carkey][cDescription]); } else if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s\n %s",CarInfo[carkey][cDescription],CarInfo[carkey2][cDescription]); } else if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] != -1) { format(string,256," %s\n %s\n %s",CarInfo[carkey][cDescription],CarInfo[carkey2][cDescription],CarInfo[carkey3][cDescription]); } ShowPlayerDialog(playerid,DIALOGMODEL,DIALOG_STYLE_LIST,"Change Vehicle Model ID",string,"Enter","Exit"); } } } } case DIALOGMODEL: { if(response) { switch(listitem) { case 1: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s",CarInfo[carkey][cDescription]); ShowPlayerDialog(playerid,DIALOGMODEL+1,DIALOG_STYLE_INPUT,string," Type in the box, the Model ID you want:","Change","Cancel"); } } case 2: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s",CarInfo[carkey2][cDescription]); ShowPlayerDialog(playerid,DIALOGMODEL+2,DIALOG_STYLE_INPUT,string," Type in the box, the Model ID you want:","Change","Cancel"); } } case 3: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] != -1) { format(string,256," %s",CarInfo[carkey3][cDescription]); ShowPlayerDialog(playerid,DIALOGMODEL+3,DIALOG_STYLE_INPUT,string," Type in the box, the Model ID you want:","Change","Cancel"); } } } } } case DIALOGMODEL+1: { if(response) { new carkey = PlayerInfo[playerid][pPcarkey]; if(strlen(inputtext)) { new string[128]; new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_GREY, " Wrong model id!"); return 1; } CarInfo[carkey][cModel] = model; format(CarInfo[carkey][cDescription], 32, "%s",vehName[model-400]); format(string, sizeof(string), " [Veh Info]: {3D9AD4}New vehicle model saved."); SendClientMessage(playerid, COLOR_BLUE, string); OnPropUpdate(); SavePlayerData(playerid); TogglePlayerControllable(playerid, 1); } } } case DIALOGMODEL+2: { if(response) { new carkey = PlayerInfo[playerid][pPcarkey2]; if(strlen(inputtext)) { new string[128]; new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_GREY, " Wrong model id!"); return 1; } CarInfo[carkey][cModel] = model; format(CarInfo[carkey][cDescription], 32, "%s",vehName[model-400]); format(string, sizeof(string), " [Veh Info]: {3D9AD4}New vehicle model saved."); SendClientMessage(playerid, COLOR_BLUE, string); OnPropUpdate(); SavePlayerData(playerid); TogglePlayerControllable(playerid, 1); } } } case DIALOGMODEL+3: { if(response) { new carkey = PlayerInfo[playerid][pPcarkey3]; if(strlen(inputtext)) { new string[128]; new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_GREY, " Wrong model id!"); return 1; } CarInfo[carkey][cModel] = model; format(CarInfo[carkey][cDescription], 32, "%s",vehName[model-400]); format(string, sizeof(string), " [Veh Info]: {3D9AD4}New vehicle model saved."); SendClientMessage(playerid, COLOR_BLUE, string); OnPropUpdate(); SavePlayerData(playerid); TogglePlayerControllable(playerid, 1); } } } } public OnPlayerCommandText(playerid, cmdtext[]) if (strcmp(cmd, "/dveh", true) == 0) { if(PlayerInfo[playerid][pPcarkey] != -1 || PlayerInfo[playerid][pPcarkey2] != -1 || PlayerInfo[playerid][pPcarkey3] != -1) { ShowPlayerDialog(playerid,DIALOGDVEH,DIALOG_STYLE_LIST,"Donate Vehicle's"," Change Vehicle Model ID \n Change Vehicle Color ID \n Save Vehicle Position \n Respawn Vehicle \n Tow Vehicle","Enter","Exit"); return 1; } else SendClientMessage(playerid, COLOR_GREY, " You don't have a donater vehicle"); }[/pawn] EDIT: ms TzAkS , Dar acum apare dialogu iar cand dau pe o functie din lista ex: Change Vehicle Model ID numi mai apare ca sa scriu id si sa se schimbe , numi mai apare nimik