[Solved half] moving gate
#9

Quote:
Originally Posted by KnooL
pawn Код:
if(IsPlayerInRangeOfPoint(i, 10.0, -302.628,1507.450,76.070) && OpenGate[i] == 0);
must be

pawn Код:
if(IsPlayerInRangeOfPoint(i, 10.0, -302.628,1507.450,76.070) && OpenGate[i] == 0) {
i have:
Код:
forward CheckGate();
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++) {
  if(!IsPlayerConnected(i)) continue;
  if(IsPlayerInRangeOfPoint(i, 10.0, -302.628,1507.450,76.070) && OpenGate[i] == 0) {
    MoveObject(gate,-293.828,1507.450,76.070,10);
		OpenGate[i] = 1;
  }
	else if(!IsPlayerInRangeOfPoint(i, 10.0, -302.628,1507.450,76.070) && OpenGate[i] == 1) {
    MoveObject(gate,-302.628,1507.450,76.070,10);
    OpenGate[i] = 0;
	}
}
With that i getting errors
Reply


Messages In This Thread
[Solved half] moving gate - by dclaw - 16.01.2010, 08:25
Re: [help] moving gate - by VonLeeuwen - 16.01.2010, 08:31
Re: [help] moving gate - by KnooL - 16.01.2010, 08:33
Re: [help] moving gate - by dclaw - 16.01.2010, 08:43
Re: [help] moving gate - by dclaw - 16.01.2010, 08:45
Re: [help] moving gate - by KnooL - 16.01.2010, 08:54
Re: [help] moving gate - by dclaw - 16.01.2010, 08:56
Re: [help] moving gate - by KnooL - 16.01.2010, 08:58
Re: [help] moving gate - by dclaw - 16.01.2010, 08:59
Re: [help] moving gate - by KnooL - 16.01.2010, 09:00

Forum Jump:


Users browsing this thread: 4 Guest(s)