Toy Editor
#5

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
You need to add it to OnDialogResponse:

pawn Код:
if(dialogid == EDITTOYS2)
{
    if(response)
    {
        switch(listitem)
        {
            case 1:
            {
                EditAttachedObject(playerid, 0);
            }
        }
    }
}
Alright how can i input that into this -

Код:
stock ShowEditMenu(playerid)
{
    if(IsPlayerAttachedObjectSlotUsed(playerid, slotselection[playerid]))
	{
 		RemovePlayerAttachedObject(playerid, slotselection[playerid]);
	}
	SetPlayerAttachedObject(playerid, slotselection[playerid], PlayerToyInfo[playerid][slotselection[playerid]][ptModelID],
	PlayerToyInfo[playerid][slotselection[playerid]][ptBone], PlayerToyInfo[playerid][slotselection[playerid]][ptPosX],
	PlayerToyInfo[playerid][slotselection[playerid]][ptPosY], PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ],
	PlayerToyInfo[playerid][slotselection[playerid]][ptRotX], PlayerToyInfo[playerid][slotselection[playerid]][ptRotY],
	PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ], 1, 1, 1);

    new stringg[512];
    format(stringg, sizeof(stringg), "%sBone (%s)\n", stringg, HoldingBones[PlayerToyInfo[playerid][slotselection[playerid]][ptBone]]);
 	ShowPlayerDialog(playerid, EDITTOYS2, DIALOG_STYLE_LIST, "Toy Menu: Edit", stringg, "Select", "Cancel");
}
Reply


Messages In This Thread
Toy Editor - by Johnny_Robins - 30.05.2012, 21:11
Re: Toy Editor - by Johnny_Robins - 30.05.2012, 22:23
Re: Toy Editor - by Johnny_Robins - 31.05.2012, 20:00
Re: Toy Editor - by MadeMan - 31.05.2012, 20:12
Re: Toy Editor - by Johnny_Robins - 31.05.2012, 20:23
Re: Toy Editor - by MadeMan - 31.05.2012, 20:27
Re: Toy Editor - by Johnny_Robins - 31.05.2012, 20:32
Re: Toy Editor - by Johnny_Robins - 31.05.2012, 20:41
Re: Toy Editor - by MadeMan - 31.05.2012, 20:45
Re: Toy Editor - by Johnny_Robins - 31.05.2012, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)