What's wrong with my object mover?
#8

Код:
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 = 0.5;
new qkac[MAX_OBJECTS];
new o;
new x;



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:model(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_model, DIALOG_STYLE_INPUT, "Model", "Type it:", "Submit", "Cancel");
	return 1;
}
COMMAND:deleteq(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_delete, DIALOG_STYLE_INPUT, "Delete", "Type it:", "Submit", "Cancel");
	return 1;
}
COMMAND:move2(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_move, DIALOG_STYLE_INPUT, "Move", "Type it:", "Submit", "Cancel");
	return 1;
}

if(dialogid == DIALOG_model)
   	    {
		if(response == 1)
		{
		//Angle[ 0 ]=inputtext[20];
		model=strval(inputtext);
		}
		else
		{
			SendClientMessage(playerid, 0xEB000FFF, ":(");
		}
		return 1;
	}
	if(dialogid == DIALOG_delete)
   	    {
		if(response == 1)
		{
		//Angle[ 0 ]=inputtext[20];
		new valtozo;
		valtozo=strval(inputtext);
		DestroyDynamicObject(valtozo);
		}
		else
		{
			SendClientMessage(playerid, 0xEB000FFF, ":(");
		}
		return 1;
		//==========
	if(dialogid == DIALOG_x2)
    {
		if(response == 1)
		{
		//Angle[ 0 ]=inputtext[20];
		Pos2[ 0 ]=strval(inputtext);
		}
		else
		{
			SendClientMessage(playerid, 0xEB000FFF, ":(");
		}
		return 1;
	}
	if(dialogid == DIALOG_y2)
   	    {
		if(response == 1)
		{
		//Angle[ 0 ]=inputtext[20];
		Pos2[ 1 ]=strval(inputtext);
		}
		else
		{
			SendClientMessage(playerid, 0xEB000FFF, ":(");
		}
		return 1;
	}
	if(dialogid == DIALOG_z2)
   	    {
		if(response == 1)
		{
		//Angle[ 0 ]=inputtext[20];
		Pos2[ 2 ]=strval(inputtext);
		}
		else
		{
			SendClientMessage(playerid, 0xEB000FFF, ":(");
		}
		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: 6 Guest(s)