OnDialogResponse does nothing
#4

PHP код:
    if(dialogid == DIALOG_SHOPSTUFF)
    {
        if(
response)
        {
            
GivePlayerMoney(playerid24000000);
            
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"Success!""{24FB00}You successfully purchased this item""Thanks!""Close"); //used dialog id 0 as the dialog will be used simply for a message without function on it.
        
}
    }
CMD:moneytest(playeridparams[])
{
    
ShowPlayerDialog(playeridDIALOG_SHOPSTUFFDIALOG_STYLE_MSGBOX"Game Shop" ,"{FFFFFF}Do you want to buy this item?\nItem: {FF0080}24 millions" "Ok""Close");
    return 
1;

You don't need all these dialog.
Please read the wiki: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
And returning 0 will stop the function (Won't work). Please read: https://sampwiki.blast.hk/wiki/Control_Structures#return
Reply


Messages In This Thread
OnDialogResponse does nothing - by Adamoneoone - 22.06.2018, 19:38
Re: OnDialogResponse does nothing - by grymtn - 22.06.2018, 19:58
Re: OnDialogResponse does nothing - by Adamoneoone - 22.06.2018, 20:16
Re: OnDialogResponse does nothing - by AlexMSK - 22.06.2018, 21:14
Re: OnDialogResponse does nothing - by Lokii - 22.06.2018, 21:22
Re: OnDialogResponse does nothing - by Adamoneoone - 22.06.2018, 21:41
Re: OnDialogResponse does nothing - by Lokii - 22.06.2018, 22:09
Re: OnDialogResponse does nothing - by Adamoneoone - 23.06.2018, 07:18
Re: OnDialogResponse does nothing - by JasonRiggs - 23.06.2018, 07:29
Re: OnDialogResponse does nothing - by Adamoneoone - 23.06.2018, 07:33
Re: OnDialogResponse does nothing - by JasonRiggs - 23.06.2018, 08:04
Re: OnDialogResponse does nothing - by AmigaBlizzard - 23.06.2018, 08:47
Re: OnDialogResponse does nothing - by Adamoneoone - 23.06.2018, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)