Automatic gates warnings ?? Help!!
#1

Код:
C:\Users\S. Derksen\Desktop\server bestanden\larp.pwn(44984) : warning 202: number of arguments does not match definition
C:\Users\S. Derksen\Desktop\server bestanden\larp.pwn(44989) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      9036 bytes
Code size:     1630828 bytes
Data size:     3667072 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4982 cells (19928 bytes)
Total requirements: 5323320 bytes

2 Warnings.
the lines
Код:
public CheckGate()
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(PlayerToPoint(10.0, i, 2956.611328, -3737.977783, 21.641598) && OpenGate[i] == 0)
    {
      MoveObject(Boat, 2956.611328, -3737.977783, 21.641598);
      OpenGate[i] = 1;
    }
    else if(!PlayerToPoint(10.0, i, 2956.611328, -3737.977783, 21.641598) && OpenGate[i] == 1)
    {
      MoveObject(Boat, 2956.611328, -3737.977783, 21.641598);
      OpenGate[i] = 0;
    }
  }
}
the ongamemodeinit
Boat = CreateObject(9958, 2956.401123, -2867.273682, 22.373745, 0.0000, 359.1406, 0.4821);//boat
and new Boat;
What did i do wrong
Reply
#2

i have also

new OpenGate [1];
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)