23.08.2009, 10:20
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(363 ) : warning 203: symbol is never used: "c_gate"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(46) : error 017: undefined symbol "c_gate"
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(46) : error 017: undefined symbol "object_ID"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(363 ) : warning 203: symbol is never used: "OpenGate"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
then where to put this code?
SetTimer("CheckGate", 500, true);
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(24) : error 021: symbol already defined: "SetTimer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
and this:
forward CheckGate();
and this:
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z) && OpenGate[i] == 0)
{
MoveObject(c_gate, open_X, open_Y, open_Z);
OpenGate[i] = 1;
}
else if(!PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z) && OpenGate[i] == 1)
{
MoveObject(c_gate, closed_X, closed_Y, closed_Z);
OpenGate[i] = 0;
}
}
}
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(46) : error 017: undefined symbol "c_gate"
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(46) : error 017: undefined symbol "object_ID"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(363 ) : warning 203: symbol is never used: "OpenGate"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
then where to put this code?
SetTimer("CheckGate", 500, true);
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(24) : error 021: symbol already defined: "SetTimer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
and this:
forward CheckGate();
and this:
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z) && OpenGate[i] == 0)
{
MoveObject(c_gate, open_X, open_Y, open_Z);
OpenGate[i] = 1;
}
else if(!PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z) && OpenGate[i] == 1)
{
MoveObject(c_gate, closed_X, closed_Y, closed_Z);
OpenGate[i] = 0;
}
}
}