Error on the script
#3

Код:
stock ShowEditMenu(playerid)
{
	new
		iIndex = GetPVarInt(playerid, "ToySlot");

    if(IsPlayerAttachedObjectSlotUsed(playerid, iIndex))
	{
 		RemovePlayerAttachedObject(playerid, iIndex);
	}
	if(PlayerToyInfo[playerid][iIndex][ptScaleX] == 0) {
		PlayerToyInfo[playerid][iIndex][ptScaleX] = 1.0;
		PlayerToyInfo[playerid][iIndex][ptScaleY] = 1.0;
		PlayerToyInfo[playerid][iIndex][ptScaleZ] = 1.0;
	}

	SetPlayerAttachedObject(playerid, iIndex, PlayerToyInfo[playerid][iIndex][ptModelID],
	PlayerToyInfo[playerid][iIndex][ptBone], PlayerToyInfo[playerid][iIndex][ptPosX],
	PlayerToyInfo[playerid][iIndex][ptPosY], PlayerToyInfo[playerid][iIndex][ptPosZ],
	PlayerToyInfo[playerid][iIndex][ptRotX], PlayerToyInfo[playerid][iIndex][ptRotY],
	PlayerToyInfo[playerid][iIndex][ptRotZ], PlayerToyInfo[playerid][iIndex][ptScaleX],
	PlayerToyInfo[playerid][iIndex][ptScaleY], PlayerToyInfo[playerid][iIndex][ptScaleZ]);

    new stringg[128];
    format(stringg, sizeof(stringg), "Bone (%s)\nOffset", HoldingBones[PlayerToyInfo[playerid][iIndex][ptBone]]);
 	ShowPlayerDialog(playerid, EDITTOYS2, DIALOG_STYLE_LIST, "Toy Menu: Edit", stringg, "Select", "Cancel");
}
here the code
Reply


Messages In This Thread
Error on the script - by Shazwan - 21.12.2013, 13:38
Re: Error on the script - by BarFix - 21.12.2013, 13:49
Re: Error on the script - by Shazwan - 21.12.2013, 14:17
Re: Error on the script - by Hansrutger - 21.12.2013, 14:20
Re: Error on the script - by Shazwan - 21.12.2013, 14:23
Re: Error on the script - by SilentSoul - 21.12.2013, 14:26
Re: Error on the script - by Shazwan - 21.12.2013, 14:29
Re: Error on the script - by SilentSoul - 21.12.2013, 14:34
Re: Error on the script - by Shazwan - 21.12.2013, 14:36
Re: Error on the script - by SilentSoul - 21.12.2013, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)