Automatic Gates
#3

Quote:
Originally Posted by Joe Staff
Someone changed it after I had, and changed it so it was incorrect

But the wiki is now correct.
Thank you for doing that! It works now, but I have a question about the code...

I have this:
pawn Код:
public CheckGate()
{
  new jailgate_status;
  for(new i;i<MAX_PLAYERS;i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(IsPlayerInRangeOfPoint(i,10.0,266.30337524414, 92.817451477051, 1002.5568237305))jailgate_status=1;
  }
  if(jailgate_status)MoveDynamicObject(LSPDGate, 266.25262451172, 96.629951477051, 1002.5570678711,6.0);
  else MoveDynamicObject(LSPDGate, 266.30337524414, 92.817451477051, 1002.5568237305, 6.0);
}
but on this line...

pawn Код:
if(IsPlayerInRangeOfPoint(i,10.0,266.30337524414, 92.817451477051, 1002.5568237305))jailgate_status=1;
Anytime I change the 10.0 after the IsPlayerInRangeOfPoint(i, ... It won't work anymore I set it to 1.0 and the gate does not open, why?
Reply


Messages In This Thread
Automatic Gates - by Scenario - 22.04.2010, 03:36
Re: Automatic Gates - by Joe Staff - 22.04.2010, 06:52
Re: Automatic Gates - by Scenario - 22.04.2010, 07:29
Re: Automatic Gates - by Joe Staff - 22.04.2010, 08:00
Re: Automatic Gates - by Scenario - 22.04.2010, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)