object not moving, why?
#1

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_VAMA1)
    	{
            if (!response)
            {
				ProxDetector(20.0, playerid, "Vames: Va asteptam cand v-a razganditi!", COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                //return 1;
            }
            else if(response) // Pressed ENTER or clicked 'Login' button
            {
                SendClientMessage(playerid, COLOR_GREEN, "TEST");
                new string[70], sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s plateste niste bani vamesului.", sendername);
  				ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				SendClientMessage(playerid, COLOR_LIGHTRED, "((Ai la dispozitie 6 secunde sa treci si sa nu te blochezi.))");
				SendClientMessage(playerid, COLOR_LIGHTRED, "((Tasteaza comanda [/receipt] pentru a vedea bonul fiscal sau /fixtoll daca ai ramas blocat))");
				ProxDetector(20.0, playerid, "Vames: Sa aveti o zi placuta!", COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
				SetTimer("OpenVama", 6000, false);
				SetTimer("FixToll", 10000, false);
				FixToll[playerid][0] = 1;
				MoveObject(vama1, 2127.15210, 48.91410, 26.15630, 0.00000, -47.00000, 89.00000);
            	//return 1;
            }
        }
    if(dialogid == DIALOG_VAMA2)
    	{
            if (!response)
            {
				ProxDetector(20.0, playerid, "Vames: Va asteptam cand v-a razganditi!", COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                //return 1;
            }
            else if(response) // Pressed ENTER or clicked 'Login' button
            {
                SendClientMessage(playerid, COLOR_GREEN, "TEST");
                new string[70], sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s plateste niste bani vamesului.", sendername);
  				ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				SendClientMessage(playerid, COLOR_LIGHTRED, "((Ai la dispozitie 6 secunde sa treci si sa nu te blochezi.))");
				SendClientMessage(playerid, COLOR_LIGHTRED, "((Tasteaza comanda [/receipt] pentru a vedea bonul fiscal sau /fixtoll daca ai ramas blocat))");
				ProxDetector(20.0, playerid, "Vames: Sa aveti o zi placuta!", COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
				SetTimer("OpenVama", 6000, false);
				SetTimer("FixToll", 10000, false);
				FixToll[playerid][0] = 1;
				MoveObject(vama2, 2127.15210, 48.91410, 26.15630, 0.00000, -47.00000, 89.00000);
            	//return 1;
            }
        }
	return 1;
}
Why is the barrier not lifting up?
Reply
#2

I forgot to add the speed..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)