20.10.2009, 13:10
i did the next thing for Auto Gates
and i get this after compling
Help please
?
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;
}
}
}
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.
?


?