SA-MP Forums Archive
2 moves - 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: 2 moves (/showthread.php?tid=69619)



2 moves - fff - 19.03.2009

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?


Re: 2 moves - Vince - 19.03.2009

Show us your script.


Re: 2 moves - MenaceX^ - 19.03.2009

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

Like that.


Re: 2 moves - fff - 19.03.2009

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


Re: 2 moves - LarzI - 19.03.2009

return 1; should be before the brace } not after


Re: 2 moves - MenaceX^ - 19.03.2009

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");
}



Re: 2 moves - fff - 19.03.2009

http://pastebin.com/m73382be0
please see it


Re: 2 moves - Jefff - 19.03.2009

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)


Re: 2 moves - LarzI - 19.03.2009

even better (indented)

http://pastebin.com/m510dfaee


Re: 2 moves - fff - 20.03.2009

thx very much guys.its works.