Error!
#5

pawn Код:
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
    if (fScaleX > 2.0) fScaleX = 2.0;
    if (fScaleY > 2.0) fScaleY = 2.0;
    if (fScaleZ > 2.0) fScaleZ = 2.0;
    new slot = slotselection[playerid];
    if (response)
    {
        new string[64];
        PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = fOffsetX;
        PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = fOffsetY;
        PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = fOffsetZ;
        PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = fRotX;
        PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = fRotY;
        PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = fRotZ;
        PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = fScaleX;
        PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = fScaleY;
        PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = fScaleZ;
        return 1;
    }
    else
    {
        RemovePlayerAttachedObject(playerid, slotselection[playerid]);
        if(PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] != 0)
        {
            static
                a = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID],
                b = PlayerToyInfo[playerid][slotselection[playerid]][ptBone],
                c = PlayerToyInfo[playerid][slotselection[playerid]][ptPosX],
                d = PlayerToyInfo[playerid][slotselection[playerid]][ptPosY],
                e = PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ],
                f = PlayerToyInfo[playerid][slotselection[playerid]][ptRotX],
                g = PlayerToyInfo[playerid][slotselection[playerid]][ptRotY],
                h = PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ],
                i = PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX],
                j = PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY],
                k = PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]
            ;
            SetPlayerAttachedObject(playerid, slotselection[playerid], a, b, c, d, e, f, g, h, i, j, k);
        }
    }
    return 1;
}
underneath the RemovePlayerAttachedObject(playerid, slotselection[playerid]); is too long
Reply


Messages In This Thread
Error! - by aboa - 25.12.2013, 13:42
Re: Error! - by CutX - 25.12.2013, 13:47
Re: Error! - by aboa - 25.12.2013, 13:50
Re: Error! - by CutX - 25.12.2013, 14:04
Re: Error! - by Patrick - 25.12.2013, 14:06
Re: Error! - by Pottus - 25.12.2013, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)