13.12.2013, 10:53
Quote:
Unreachable code means when you use return and the next line had some text that could be executed , Would you mind if you showed us full code of OnDialogResponse ? to fix your problem , also show us in which line you get this error.
|
heres the dialog before that one
Код:
if(dialogid == DIALOG_LOGIN) { if(!response) return SetTimerEx("IsKick" ,10 ,false ,"i" ,playerid),SendClientMessage(playerid,0xFF0000C8,".бзшъ мцаъ одщшъ"); if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{00FF00}Login","{00FF00}шщен аъ сйсоък","дъзбшеъ","йцйад"); if(strcmp(inputtext,DOF2_GetString(RFile(playerid),"Password"),true)) { if(LongPass[playerid] == true) { LongPass[playerid] = false; ShowPlayerDialog(playerid,DIALOG_LONG,DIALOG_STYLE_MSGBOX,"{FF0000}Eror Password:","{FF0000}.бвмм щитйъ 2 фтойн бсйсод зифъ чйч","айщеш","йцйад"); SetTimerEx("IsKick" ,10 ,false ,"i" ,playerid); return 1; } LongPass[playerid] = true; format(String,sizeof(String),"{FF0000}дсйсоа щдчщъ айрд рлерд\n{FF0000}[%d/2] :рщаш мк тег осфш фтойн бщбйм мвмеъ аъ дсйсод",LongPass[playerid]); ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{FF0000}Eror Password:",String,"дъзбшеъ","йцйад"); return 1; } SendClientMessage(playerid,-1,"{00FFFF}!дъзбшъ мщшъ бдцмзд"); format(String,sizeof(String),"{00FFFF}дъзбш мщшъ бдцмзд %s дщзчп",GetName(playerid)); SendClientMessage(playerid, -1 , String); Loged[playerid] = true; } return 1; if(dialogid == DIALOG_GANG) { if(response) { if(listitem == 0) { SendClientMessage(playerid,0xFF0000AA," бзшъ щма мдйеъ збш бщен варв! "); } if(listitem == 1) { //TEXT } if(listitem == 2) { //TEXT } if(listitem == 3) { //TEXT } if(listitem == 4) { //TEXT } if(listitem == 5) { //TEXT } return 1; } } return 0; }