Auto Gates
#1

i did the next thing for Auto Gates
Code:
public CheckGate()
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(PlayerToPoint(10.0, i, 213.880005, 1875.686768, 10.506058) && OpenGate[i] == 0)
    {
      MoveObject(c_gate, 213.882446, 1875.694214, 14.031004);
      OpenGate[i] = 1;
    }
    else if(!PlayerToPoint(10.0, i, 213.880005, 1875.686768, 10.506058) && OpenGate[i] == 1)
    {
      MoveObject(c_gate, 213.880005, 1875.686768, 10.506058);
      OpenGate[i] = 0;
    }
  }
}
and i get this after compling

Code:
D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(243) : warning 202: number of arguments does not match definition
D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(248) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Help please ?
Reply


Messages In This Thread
Auto Gates - by Danikov - 20.10.2009, 13:10
Re: Auto Gates - by MB@ - 20.10.2009, 13:14
Re: Auto Gates - by Danikov - 20.10.2009, 13:16
Re: Auto Gates - by Danikov - 20.10.2009, 13:17
Re: Auto Gates - by Danikov - 20.10.2009, 13:21
Re: Auto Gates - by thuron - 20.10.2009, 13:29
Re: Auto Gates - by Danikov - 20.10.2009, 13:31
Re: Auto Gates - by thuron - 20.10.2009, 13:32
Re: Auto Gates - by Danikov - 20.10.2009, 13:35
Re: Auto Gates - by thuron - 20.10.2009, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)