Simple Script [HELP!!]
#6

Quote:
Originally Posted by unique1801
well i tried myself using

Closed position :
-649.76745605469, 3350.1076660156, 19.643577575684
Open Position
-649.25280761719, 3349.5532226563, 25.729196548462

Object id : 987 (elecfence_Bar)

Код:
public CheckGate()
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(PlayerToPoint(987, i, -649.76745605469, 3350.1076660156, 19.643577575684) && OpenGate[i] == 0)
    {
      MoveObject(c_gate, -649.25280761719, 3349.5532226563, 25.729196548462);
      OpenGate[i] = 1;
    }
    else if(!PlayerToPoint(987, i, -649.76745605469, 3350.1076660156, 19.643577575684) && OpenGate[i] == 1)
    {
      MoveObject(c_gate, -649.76745605469, 3350.1076660156, 19.643577575684);
      OpenGate[i] = 0;
    }
  }
}
got these errors

Код:
C:\Documents and Settings\Nish\Desktop\AC.pwn(216) : warning 235: public function lacks forward declaration (symbol "CheckGate")
C:\Documents and Settings\Nish\Desktop\AC.pwn(221) : error 017: undefined symbol "PlayerToPoint"
C:\Documents and Settings\Nish\Desktop\AC.pwn(221) : warning 215: expression has no effect
C:\Documents and Settings\Nish\Desktop\AC.pwn(221) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Nish\Desktop\AC.pwn(221) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nish\Desktop\AC.pwn(221) : fatal error 107: too many error messages on one line
...
Read the wiki fully!
Reply


Messages In This Thread
Simple Script [HELP!!] - by unique1801 - 22.10.2009, 15:48
Re: Simple Script [HELP!!] - by Rensy - 22.10.2009, 15:48
Re: Simple Script [HELP!!] - by dice7 - 22.10.2009, 15:55
Re: Simple Script [HELP!!] - by unique1801 - 22.10.2009, 16:01
Re: Simple Script [HELP!!] - by unique1801 - 22.10.2009, 16:48
Re: Simple Script [HELP!!] - by Virtual1ty - 22.10.2009, 17:00
Re: Simple Script [HELP!!] - by unique1801 - 22.10.2009, 17:10
Re: Simple Script [HELP!!] - by Virtual1ty - 22.10.2009, 17:16
Re: Simple Script [HELP!!] - by unique1801 - 22.10.2009, 17:18
Re: Simple Script [HELP!!] - by unique1801 - 22.10.2009, 17:35

Forum Jump:


Users browsing this thread: 2 Guest(s)