SA-MP Forums Archive
object not moving, why? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: object not moving, why? (/showthread.php?tid=598430)



object not moving, why? - AndreiWow - 12.01.2016

Код:
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?


Re: object not moving, why? - AndreiWow - 12.01.2016

I forgot to add the speed..