Moving gates problem
#1

erm yeah the problem i have is i script the gates in with the coords and cmds n stuff from jucies [TUT] but when run samp-server.exe my cars disapere and its gets to welcome to ___________blah blah but it dosnt come up with where i can login any suggestions ill get the script part from gate if ya want so you can have a look


here is the script i added for the gate at LSPD

i added
Код:
new pdoutdoor;

if(strcmp(cmdtext,"/ood", true) == 0)

   
   {
		 if(PlayerToPoint(15.0, playerid,1579.21,-1637.95,14.0793))
		 {
 	   MoveObject(pdoutdoor, 1579.21,-1637.95,14.0793, 2.500000);
     return 1;
     }
  }
}

if(strcmp(cmdtext,"/cod", true) == 0)

   
   {
		 if(PlayerToPoint(15.0, playerid,1581.21,-1637.95,14.0793))
		 {
 	   MoveObject(hqgate, 1581.21,-1637.95,14.0793, 1.500000);
     return 1;
     }
  }
}
is this ok or does there need to be a closed braket ? or somethign please help me
Reply
#2

How did that shit even compile !?!?

AND I don't believe the 'hqgate' on the last command is supposed to be that.. i THINK its supposed to be pdoutdoor

pawn Код:
new pdoutdoor;

if(strcmp(cmdtext,"/ood", true) == 0)
{
  if(PlayerToPoint(15.0, playerid,1579.21,-1637.95,14.0793)) {
    MoveObject(pdoutdoor, 1579.21,-1637.95,14.0793, 2.500000);
  }
  return 1;
}


if(strcmp(cmdtext,"/cod", true) == 0)
{
  if(PlayerToPoint(15.0, playerid,1581.21,-1637.95,14.0793)) {
    MoveObject(pdoutdoor, 1581.21,-1637.95,14.0793, 1.500000);
  }
  return 1;
}
Reply
#3

so whats rong with it lol how can i make it work?
Reply
#4

Whats wrong is that it was a fucked commands, try the one i fixed.
Reply
#5

thanks mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)