SA-MP Forums Archive
Moving gate wont go back! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Moving gate wont go back! (/showthread.php?tid=274078)



Moving gate wont go back! - phil_lendon - 04.08.2011

pawn Код:
new base;

  base = CreateObject(969, -1534.96, 2652.49, 55.00,   0.00, 0.00, 0.00);

if(strcmp(cmdtext, "/bo", true) == 0) { // Edit the /eup to your elevator command.
MoveObject(base,969, -1532.81, 2652.43, 55.00); // Put your cords in here
SendClientMessage(playerid, COLOR_RED, "Base Doors Open!"); // You dont alwas have to put this in, delete if wanted.
return 1;
}

if(strcmp(cmdtext, "/bc", true) == 0) { // Same deal as before
MoveObject(base,969, -1534.96, 2652.49, 55.00); // Same deal as before
SendClientMessage(playerid, COLOR_RED, "Base Doors Closed!"); // Same deal as before
return 1;
}
what should i do? it wont close!!


Re: Moving gate wont go back! - Trucker[UK] - 04.08.2011

This one here

Код:
if(strcmp(cmdtext, "/bc", true) == 0) { // Same deal as before
MoveObject(base,969, -1534.96, 2652.49, 55.00); // Same deal as before
SendClientMessage(playerid, COLOR_RED, "Base Doors Closed!"); // Same deal as before
return 1;
}
this part here should have a speed eg

u done this

Код:
MoveObject(base,969, -1534.96, 2652.49, 55.00);
it should have this

[code]MoveObject(base,969, -1534.96, 2652.49, 55.00, 2.0);
what should i do? it wont close!![/quote]

and you done this too

Код:
  base = CreateObject(969, -1534.96, 2652.49, 55.00,   0.00, 0.00, 0.00);
it should be this

Код:
  base = CreateObject(969, -1534.96, 2652.49, 55.00, 0.00, 0.00, 0.00);
This one goes here

Код:
if(strcmp(cmdtext, "/bo", true) == 0) { // Edit the /eup to your elevator command.
MoveObject(base,969, -1532.81, 2652.43, 55.00); // Put your cords in here
SendClientMessage(playerid, COLOR_RED, "Base Doors Open!"); // You dont alwas have to put this in, delete if wanted.
return 1;
}
and this too it is yours

Код:
MoveObject(base,969, -1532.81, 2652.43, 55.00);
and it should be this

Код:
MoveObject(base,969, -1532.81, 2652.43, 55.00, 2.0);



Re: Moving gate wont go back! - phil_lendon - 04.08.2011

thanks tryin now


Re: Moving gate wont go back! - phil_lendon - 04.08.2011

error 029: invalid expression, assumed zero
warning 202: number of arguments does not match definition


Re: Moving gate wont go back! - Trucker[UK] - 04.08.2011

line wat


Re: Moving gate wont go back! - phil_lendon - 04.08.2011

(413) : warning 202: number of arguments does not match definition
MoveObject(base,969, -1534.96, 2652.49, 55.00, 2.0); // Same deal as before for close

(19 : error 029: invalid expression, assumed zero
base = CreateObject(969, -1534.96, 2652.49, 55.00, 0.00, 0.00, 0.00);


Re: Moving gate wont go back! - Trucker[UK] - 04.08.2011

do u have skype


Re: Moving gate wont go back! - phil_lendon - 04.08.2011

DUDE JUST TELL ME HOW TO FIX IT, if you dont bloody know >_> dont post!


Re: Moving gate wont go back! - Naruto_Emilio - 04.08.2011

Fixed:
base = CreateObject(969, -1534.96, 2652.49, 55.00, 0.00, 0.00, 0.00);
Not
base = CreateObject(969, -1534.96, 2652.49, 55.00, 0.00, 0.00, 0.00);;


Re: Moving gate wont go back! - phil_lendon - 04.08.2011

Naruto i sent u my code :P help n i rep