Gates problems
#1

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

which is line 156?
Reply
#3

i think the all cmd is roong.

it should be like:

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

no, and don't double post.

Sabotinekes, show us the script.
Reply
#5

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...
Reply
#6

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)