Automatic gates warnings ?? Help!! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Automatic gates warnings ?? Help!! (
/showthread.php?tid=81707)
Automatic gates warnings ?? Help!! -
Derksen123 - 13.06.2009
Код:
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
Re: Automatic gates warnings ?? Help!! -
Derksen123 - 13.06.2009
i have also
new OpenGate [1];