23.06.2017, 16:03
The "function" word before your function is the problem.
Remove it or change for "stock".
Remove it or change for "stock".
PHP код:
stock CheckToStartCountdownL1()
{
for(new i; i < MAX_LOBBY; i++)
{
if(Lobby[IsStartedLobbyOne] == 0)
{
if(GameInfo[i][LobbyOnePlayers] >= 2)
{
SendMessageToAllPlayersInLobby1(-1,"SERVER: 2 players are in lobby, countdown is starting");
SendMessageToAllPlayersInLobby1(-1,"SERVER: 30 Seconds until game starts");
Lobby[IsStartedLobbyOne] = 1;
KillTimer(lobbyonetimer);
}
else if(GameInfo[i][LobbyOnePlayers] >= 1)
{
SendMessageToAllPlayersInLobby1(-1,"SERVER: Not enough players to start countdown! (2 players needed)");
}
}
}
return 1;
}