02.07.2009, 15:15
I have two quick questions
--------------------------
(1) I have a timer that checks if a player is near a certatin position, if true creates a checkpoint.
I get the error that line 47 is an empty statement.
----------------------------------------------------------------------------------------
(2) Also I have multiple checkpoints that are activated at a certain time. Under "OnPlayerEnterCheckpoint" how can I make it so that a different thing happens for each checkpoint? Is there a way to define them?
Thanks!
--------------------------
(1) I have a timer that checks if a player is near a certatin position, if true creates a checkpoint.
pawn Код:
public timer()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(PlayerToPoint(10.0,i,-2047.0293,-100.7723,35.1641)==0);//line 47
{
SetPlayerCheckpoint(i,-2047.0293,-100.7723,35.1641,10);
}
}
}
----------------------------------------------------------------------------------------
(2) Also I have multiple checkpoints that are activated at a certain time. Under "OnPlayerEnterCheckpoint" how can I make it so that a different thing happens for each checkpoint? Is there a way to define them?
Thanks!