2 moves
#1

i have a problem.
i can't make 2 objects to move it gives me warnings but i want to both objects to move.how i do?
Reply
#2

Show us your script.
Reply
#3

Don't add brackes between each MoveObject.
Make them both together
MoveObject..
MoveObject..

Like that.
Reply
#4

Код:
if(strcmp("/poarta1o",cmdtext,true) == 0){
{
  MoveObject(poarta1, 1553, 1493.168823, -756.995117, 88.176208,4);
  MoveObject(poarta2, 1553, 1498.634277, -757.942261, 87.000107,4);
  SendClientMessage(playerid, COLOR_CYAN,"Portile Vilei Nr.1 s-au deschis");
}
return 1;
what's wrong.it gives me warnings
Reply
#5

return 1; should be before the brace } not after
Reply
#6

Quote:
Originally Posted by cr4zY_c4T
Код:
if(strcmp("/poarta1o",cmdtext,true) == 0){
{
  MoveObject(poarta1, 1553, 1493.168823, -756.995117, 88.176208,4);
  MoveObject(poarta2, 1553, 1498.634277, -757.942261, 87.000107,4);
  SendClientMessage(playerid, COLOR_CYAN,"Portile Vilei Nr.1 s-au deschis");
}
return 1;
what's wrong.it gives me warnings
pawn Код:
if(!strcmp(cmd,"/poarta1o",true))
{
  MoveObject(poarta1, 1553, 1493.168823, -756.995117, 88.176208,4);
  MoveObject(poarta2, 1553, 1498.634277, -757.942261, 87.000107,4);
  return SendClientMessage(playerid, COLOR_CYAN,"Portile Vilei Nr.1 s-au deschis");
}
Reply
#7

http://pastebin.com/m73382be0
please see it
Reply
#8

http://pastebin.com/m1764bdc4

Quote:
Originally Posted by lrZ^
even better (indented)

http://pastebin.com/m510dfaee
My is indented too ;x if u copy and paste to pawno it'll be ok (shitly pasteshit)
Reply
#9

even better (indented)

http://pastebin.com/m510dfaee
Reply
#10

thx very much guys.its works.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)