03.01.2010, 17:37
Hi,
I am trying to compile this as part of my GM:
public BusEnter()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, -1754.092163, 757.279907, 23.990942) && OpenGate[i] == 0)
{
MoveObject(Busenter, -1754.091675, 757.228943, 22.89439;
OpenGate[i] = 1;
}
else if(!PlayerToPoint(10.0, i, -1754.092163, 757.279907, 23.990942) && OpenGate[i] == 1)
{
MoveObject(Busenter, -1754.092163, 757.279907, 23.990942);
OpenGate[i] = 0;
}
}
return 1;
}
I get these errors:
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10264) : warning 235: public function lacks forward declaration (symbol "BusEnter")
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10269) : warning 213: tag mismatch
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10271) : warning 202: number of arguments does not match definition
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10274) : warning 213: tag mismatch
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10276) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Any help is greatly appreciated
Thanks
I am trying to compile this as part of my GM:
public BusEnter()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, -1754.092163, 757.279907, 23.990942) && OpenGate[i] == 0)
{
MoveObject(Busenter, -1754.091675, 757.228943, 22.89439;
OpenGate[i] = 1;
}
else if(!PlayerToPoint(10.0, i, -1754.092163, 757.279907, 23.990942) && OpenGate[i] == 1)
{
MoveObject(Busenter, -1754.092163, 757.279907, 23.990942);
OpenGate[i] = 0;
}
}
return 1;
}
I get these errors:
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10264) : warning 235: public function lacks forward declaration (symbol "BusEnter")
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10269) : warning 213: tag mismatch
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10271) : warning 202: number of arguments does not match definition
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10274) : warning 213: tag mismatch
C:\Users\Family\Documents\SFRP\SAMP 0.3\gamemodes\SC_pickup.pwn(10276) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Any help is greatly appreciated
Thanks