SA-MP Forums Archive
Gates problems - 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: Gates problems (/showthread.php?tid=74069)



Gates problems - sabotinekes - 19.04.2009

Heya guys...

I just making a gates..

Код:
  if(strcmp(cmd, "/mycommandforopen", true) == 0) { // Edit the /eup to your elevator command.
   MoveObject(elevator, 253.039215 , -1238.966187 , 72.317299 , 2.00); // Put your cords in here
   return 1;
   }
   if(strcmp(cmd, "/mycommandforclose", true) == 0) { // Same deal as before
   MoveObject(elevator, 258.624359 , -1233.953003 , 72.482002 , 2.00); // Same deal as before
   return 1;
	}
i got already
Код:
new elevator;
when i compile it i get this error:
C:\Documents and Settings\Shinny\My Documents\csr2v2.pwn(156) : error 001: expected token: ",", but found ";"


Can anyone explain me what this mean?
or fix the script?^^


Thx



Re: Gates problems - krisis32 - 19.04.2009

which is line 156?


Re: Gates problems - krisis32 - 19.04.2009

i think the all cmd is roong.

it should be like:

pawn Код:
elevator = MoveObject(elevator, 253.039215 , -1238.966187 , 72.317299 , 2.00);



Re: Gates problems - Rks25 - 19.04.2009

no, and don't double post.

Sabotinekes, show us the script.


Re: Gates problems - sabotinekes - 19.04.2009

Quote:
Originally Posted by krisis32
i think the all cmd is roong.

it should be like:

pawn Код:
elevator = MoveObject(elevator, 253.039215 , -1238.966187 , 72.317299 , 2.00);
When im in server.. Gate does not load...


Re: Gates problems - sabotinekes - 19.04.2009

Quote:
Originally Posted by Rk_
no, and don't double post.

Sabotinekes, show us the script.
Okay...

Код:
new elevator;
Код:
	elevator = CreateObject(CreateObject( 969, 258.624359 , -1233.953003 , 72.482002 , 0.000000 , -6.016057, 35.546187);
Код:
  if(strcmp(cmd, "/gateopen", true) == 0) { // Edit the /eup to your elevator command.
   MoveObject(elevator, 253.039215 , -1238.966187 , 72.317299 , 2.00); // Put your cords in here
   return 1;
   }
   if(strcmp(cmd, "/gateclose", true) == 0) { // Same deal as before
   MoveObject(elevator, 258.624359 , -1233.953003 , 72.482002 , 2.00); // Same deal as before
   return 1;
	}
This is the script



Re: Gates problems - Backwardsman97 - 19.04.2009

pawn Код:
elevator = CreateObject(CreateObject( 969, 258.624359 , -1233.953003 , 72.482002 , 0.000000 , -6.016057, 35.546187);
What is that? Should be like this.

pawn Код:
elevator = CreateObject( 969, 258.624359 , -1233.953003 , 72.482002 , 0.000000 , -6.016057, 35.546187);



Re: Gates problems - Typhome - 19.04.2009

Код:
elevator = CreateObject(969, 258.624359 , -1233.953003 , 72.482002 , 0.000000 , -6.016057, 35.546187);
It's is.


Re: Gates problems - sabotinekes - 19.04.2009

Quote:
Originally Posted by Matuu
Код:
elevator = CreateObject(969, 258.624359 , -1233.953003 , 72.482002 , 0.000000 , -6.016057, 35.546187);
It's is.
Oh thanks guys.. i didnt sold that thank you alot