17.12.2009, 13:44
I was scripting in some gates, This is my frist time attempting to do it, I know why i'm getting these warnings, i just don't know how to get rid of them.
And on those lines i have this.
Код:
C:\Documents and Settings\Jack\Desktop\samp03asvr_R3_win32\gamemodes\bare.pwn(2321) : warning 202: number of arguments does not match definition C:\Documents and Settings\Jack\Desktop\samp03asvr_R3_win32\gamemodes\bare.pwn(2326) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
Код:
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, 1011.927734, -1130.173828, 24.334110) && OpenGate[i] == 0)
{
MoveObject(c_gate, 1071.103882, -1130.173828, 24.334110);
OpenGate[i] = 1;
}
else if(!PlayerToPoint(10.0, i, 1011.927734, -1130.173828, 24.334110) && OpenGate[i] == 1)
{
MoveObject(c_gate, 1011.927734, -1130.173828, 24.334110);
OpenGate[i] = 0;
}
}
}

