Dialog problem
#1

I am making a dialog /toys.

If you pick the first option: Parrot it should Attach a parrot to the player.

But it won't Attach...

My codes:

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if (
response == DIALOG_TOYS)
    {
        switch(
listitem)
        {
            case 
0SetPlayerAttachedObject(playerid01907816);
        }
    }
    return 
1;
}
CMD:toys(playeridparams[])
{
    
ShowPlayerDialog(playeridDIALOG_TOYSDIALOG_STYLE_LIST"Buy a Toy""Parrot\n""Choose""Cancel");
    return 
1;

What's wrong?

I made a cmd: /parrot:

PHP код:
CMD:parrot(playeridparams[])
{
    
SetPlayerAttachedObject(playerid01907816);
    return 
1;

But that does work.

What's the problem
Reply


Messages In This Thread
Dialog problem - by Fantje - 24.07.2016, 15:21
Re: Dialog problem - by DavidBilla - 24.07.2016, 15:26
Re: Dialog problem - by Fantje - 24.07.2016, 15:29
Re: Dialog problem - by Fantje - 24.07.2016, 16:38
Re: Dialog problem - by AroseKhanNiazi - 24.07.2016, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)