30.12.2011, 17:34
You need to call achievements_OnDialogResponse in the callback too. Like so:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_ERFOLGE && response)
{
if(listitem == 0)
{
new textd[35],str2[10];
if(PlayerLanguage[playerid] == 0)
{
format(str2,sizeof(str2),"%s",Achievements[listitem][Title]);
format(textd,sizeof(textd),"%s",Achievements[listitem][Named]);
ShowPlayerDialog(playerid,DIALOG_ERFOLGE2,DIALOG_STYLE_MSGBOX,str2,textd,"Ok","");
}
else
{
format(textd,sizeof(textd),"%s",Achievements[listitem][NameE]);
format(str2,sizeof(str2),"%s",Achievements[listitem][Title]);
ShowPlayerDialog(playerid,DIALOG_ERFOLGE2,DIALOG_STYLE_MSGBOX,str2,textd,"Ok","");
}
}
return 1;
}
achievements_OnDialogResponse(playerid, dialogid, response, listitem, inputtext);
return 0;
}
#if defined _ALS_OnDialogResponse
#undef OnDialogResponse
#else
#define _ALS_OnDialogResponse
#endif
#define OnDialogResponse achievements_OnDialogResponse
forward achievements_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);