12.04.2014, 06:51
how to change this toy editor

to this

please help me!
THANK YOU VERY VERY VERY VERY MUCH AT YOUR HELPSSSSS

to this

please help me!
Код:
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], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX],
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]);
new stringg[512];
format(stringg, sizeof(stringg), "%sBone (%s)\n", stringg, HoldingBones[PlayerToyInfo[playerid][slotselection[playerid]][ptBone]]);
format(stringg, sizeof(stringg), "%sOffset X (%f)\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosX]*100));
format(stringg, sizeof(stringg), "%sOffset Y (%f)\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosY]*100));
format(stringg, sizeof(stringg), "%sOffset Z (%f)\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ]*100));
format(stringg, sizeof(stringg), "%sRotation X (%f)\n", stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptRotX]);
format(stringg, sizeof(stringg), "%sRotation Y (%f)\n", stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptRotY]);
format(stringg, sizeof(stringg), "%sRotation Z (%f)\n",stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ]);
format(stringg, sizeof(stringg), "%sScale X (%f)\n",stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX]);
format(stringg, sizeof(stringg), "%sScale Y (%f)\n",stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY]);
format(stringg, sizeof(stringg), "%sScale Z (%f)\n" ,stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]);
ShowPlayerDialog(playerid, EDITTOYS2, DIALOG_STYLE_LIST, "Toy Menu: Edit", stringg, "Select", "Cancel");
}


