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