Toy position doesn't save
#2

Help me please?

EDIT: I had this before I change it to the new system, may help you:
pawn Код:
if(dialogid == EDITTOYSPX)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < -100) offset = 0;
            else if(offset > 100) offset = 100;
            offset = offset/100;
            PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = offset;
        }
        ShowEditMenu(playerid);
    }
    if(dialogid == EDITTOYSPY)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < -100) offset = 0;
            else if(offset > 100) offset = 100;
            offset = offset/100;
            PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = offset;
        }
        ShowEditMenu(playerid);
    }
    if(dialogid == EDITTOYSPZ)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < -100) offset = 0;
            else if(offset > 100) offset = 100;
            offset = offset/100;
            PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = offset;
        }
        ShowEditMenu(playerid);
    }
    if(dialogid == EDITTOYSRX)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < -100) offset = 0;
            else if(offset > 360) offset = 360;
            PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = offset;
        }
        ShowEditMenu(playerid);
    }
    if(dialogid == EDITTOYSRY)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < -100) offset = 0;
            else if(offset > 360) offset = 360;
            PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = offset;
        }
        ShowEditMenu(playerid);
    }
    if(dialogid == EDITTOYSRZ)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < -100) offset = 0;
            else if(offset > 360) offset = 360;
            PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = offset;
        }
        ShowEditMenu(playerid);
    }
    if(dialogid == EDITTOYSSX)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < 1) offset = 1;
            else if(offset > 1.5) offset = 1.5;
            PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = offset;
        }
        ShowEditMenu(playerid);
    }if(dialogid == EDITTOYSSY)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < 1) offset = 1;
            else if(offset > 1.5) offset = 1.5;
            PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = offset;
        }
        ShowEditMenu(playerid);
    }if(dialogid == EDITTOYSSZ)
    {
        if(response)
        {
            new Float:offset = floatstr(inputtext);
            if(offset < 1) offset = 1;
            else if(offset > 1.5) offset = 1.5;
            PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = offset;
        }
        ShowEditMenu(playerid);
}
Reply


Messages In This Thread
Toy position doesn't save - by Necip - 10.07.2013, 16:54
Re: Toy position doesn't save - by Necip - 10.07.2013, 17:26
Re: Toy position doesn't save - by Necip - 10.07.2013, 17:57
Re: Toy position doesn't save - by Necip - 11.07.2013, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)