26.01.2013, 11:57
(
Последний раз редактировалось qkac1234; 27.01.2013 в 17:32.
)
Here is the codes of my mod.
The problem is, when I use /move2 and then I type the id the object is disappear
The problem is, when I use /move2 and then I type the id the object is disappear
Код:
enum
{
DIALOG_x,
DIALOG_y,
DIALOG_z,
DIALOG_model,
DIALOG_delete,
DIALOG_x2,
DIALOG_y2,
DIALOG_z2,
DIALOG_move
}
new long:model;
new Float: Angle[3];
new Float: Pos[ 4 ];
new Float: Angle2[3];
new Float: Pos2[ 4 ];
new speed = 100;
new qkac[MAX_OBJECTS];
new o;
COMMAND:xm(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_x2, DIALOG_STYLE_INPUT, "X", "Type it:", "Submit", "Cancel");
return 1;
}
COMMAND:ym(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_y2, DIALOG_STYLE_INPUT, "Y", "Type it:", "Submit", "Cancel");
return 1;
}
COMMAND:zm(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_z2, DIALOG_STYLE_INPUT, "Z", "Type it:", "Submit", "Cancel");
return 1;
}
COMMAND:move2(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_delete, DIALOG_STYLE_INPUT, "Move", "Type it:", "Submit", "Cancel");
return 1;
}
if(dialogid == DIALOG_move)
{
if(response == 1)
{
//Angle[ 0 ]=inputtext[20];
qkac[o]=strval(inputtext);
qkac[o] = MoveDynamicObject(model, Pos[0]+Pos2[0], Pos[1]+Pos2[1], Pos[2]+Pos2[2], speed, 000.0,000.0,000.0);
}
else
{
SendClientMessage(playerid, 0xEB000FFF, ":(");
}
return 1;
}

