eXtreMe96 Posted November 1, 2011 Posted November 1, 2011 Salut am o problema un fs numi raspunde la dialoguri de exmplu nici dialogul acesta nu merge if(!strcmp(cmdtext, "/relax", true)){ ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "are you sure?", "Are you sure you have time to relax?", "yes", "no"); return 1;}if(response)//they pressed the first button { switch(dialogid)//if your using only one dialog this isn't needed but you never know. { case 1://our dialog { switch(listitem)//wich listitem is chosen { case 0://the first item in the list { if(GetPlayerMoney(playerid) < 1) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerMoney(playerid, -1); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK); } case 1: { if(GetPlayerMoney(playerid) < 2) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerMoney(playerid, -2); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); } case 2: { if(GetPlayerMoney(playerid) < 3) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerMoney(playerid, -3); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE); } } } //from here we added things case 2://the new dialog { ApplyAnimation(playerid,"BEACH","Lay_Bac_Loop",4.1,1,1,1,1,10);//this will let you relax for 10 seconds } //till here } }Imi apare scrisul din showplayerdialog dar nu vrea sami raspunda cu functia din OnDialogResponse care ar fi problema? lol
IstuntmanI Posted November 1, 2011 Posted November 1, 2011 case 1://our dialog schimba cu case 2://our dialog
eXtreMe96 Posted November 1, 2011 Author Posted November 1, 2011 nu functioneaza nici asa( eu inainte sa postez aicea am luat si de pe wiki exemple leam pus si nu merg( Dati locked ca am rezolvat eu ... lol
Question
eXtreMe96
Salut am o problema un fs numi raspunde la dialoguri de exmplu nici dialogul acesta nu merge
Imi apare scrisul din showplayerdialog dar nu vrea sami raspunda cu functia din OnDialogResponse care ar fi problema?
lol
2 answers to this question
Recommended Posts