How to make an include?
#6

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[]);
Reply


Messages In This Thread
How to make an include? - by Zcelo12 - 30.12.2011, 15:47
Re: How to make an include? - by Ash. - 30.12.2011, 15:51
AW: How to make an include? - by Zcelo12 - 30.12.2011, 16:03
Re: AW: How to make an include? - by Ash. - 30.12.2011, 16:13
AW: How to make an include? - by Zcelo12 - 30.12.2011, 17:32
Re: How to make an include? - by Ash. - 30.12.2011, 17:34
Re: How to make an include? - by Guest9328472398472 - 30.12.2011, 17:34
Re: How to make an include? - by Ash. - 30.12.2011, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)