Moving gate wont go back!
#1

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!!
Reply
#2

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);
Reply
#3

thanks tryin now
Reply
#4

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

line wat
Reply
#6

(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);
Reply
#7

do u have skype
Reply
#8

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

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);;
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)