24.07.2016, 15:21
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:
What's wrong?
I made a cmd: /parrot:
But that does work.
What's the problem
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(playerid, dialogid, response, listitem, inputtext[])
{
if (response == DIALOG_TOYS)
{
switch(listitem)
{
case 0: SetPlayerAttachedObject(playerid, 0, 19078, 16);
}
}
return 1;
}
CMD:toys(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_TOYS, DIALOG_STYLE_LIST, "Buy a Toy", "Parrot\n", "Choose", "Cancel");
return 1;
}
I made a cmd: /parrot:
PHP код:
CMD:parrot(playerid, params[])
{
SetPlayerAttachedObject(playerid, 0, 19078, 16);
return 1;
}
What's the problem