What's wrong with my object mover?
#1

Here is the codes of my mod.
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;
	}
Reply


Messages In This Thread
What's wrong with my object mover?????? PLS HELP! - by qkac1234 - 26.01.2013, 11:57
Re: What's wrong with my object mover? - by IgrexolonO - 26.01.2013, 12:00
Re: What's wrong with my object mover? - by daniboi229 - 26.01.2013, 12:00
Re: What's wrong with my object mover? - by qkac1234 - 26.01.2013, 12:04
Re: What's wrong with my object mover? - by daniboi229 - 26.01.2013, 12:05
Re: What's wrong with my object mover? - by qkac1234 - 26.01.2013, 12:11
Re: What's wrong with my object mover? - by IgrexolonO - 26.01.2013, 12:14
Re: What's wrong with my object mover? - by qkac1234 - 26.01.2013, 12:19
Re: What's wrong with my object mover? - by daniboi229 - 26.01.2013, 12:31
Re: What's wrong with my object mover? - by Threshold - 26.01.2013, 13:04

Forum Jump:


Users browsing this thread: 12 Guest(s)