10.07.2013, 17:26
Help me please?
EDIT: I had this before I change it to the new system, may help you:
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);
}