oleg_nelasy
Участник
- Сообщения
- 664
- Реакции
- 46
При проверке условия if(IsClientInGame(iPlayer) && !IsFakeClient(iPlayer) && !bMoveToCT[iPlayer] && GetClientTeam(iPlayer) > CS_TEAM_SPECTATOR) ловлю ошибку
L 10/26/2021 - 22:42:22: Info (map "de_dust2") (file "D:\HideAndSeek\csgo\addons\sourcemod\logs\errors_20211026.log")
L 10/26/2021 - 22:42:22: [SM] Exception reported: Script execution timed out
L 10/26/2021 - 22:42:22: [SM] Blaming: prophunt.smx
L 10/26/2021 - 22:42:22: [SM] Call stack trace:
L 10/26/2021 - 22:42:22: [SM] [1] Line 38, prophunt/teams.sp::UpdateTeams
L 10/26/2021 - 22:42:22: [SM] [2] Line 6, prophunt/events_round.sp::Event_OnRoundPreStart
L 10/26/2021 - 22:42:22: [SM] Exception reported: Script execution timed out
L 10/26/2021 - 22:42:22: [SM] Blaming: prophunt.smx
L 10/26/2021 - 22:42:22: [SM] Call stack trace:
L 10/26/2021 - 22:42:22: [SM] [1] Line 38, prophunt/teams.sp::UpdateTeams
L 10/26/2021 - 22:42:22: [SM] [2] Line 6, prophunt/events_round.sp::Event_OnRoundPreStart
int iPlayer;
while(iCTs >= iMaxCTs)
{
iPlayer = GetRandomInt(1, MaxClients);
if(IsClientInGame(iPlayer) && !IsFakeClient(iPlayer) && !bMoveToCT[iPlayer] && GetClientTeam(iPlayer) > CS_TEAM_SPECTATOR)
{
bMoveToCT[iPlayer] = true;
iCTs++;
}
}
while(iCTs >= iMaxCTs)
{
iPlayer = GetRandomInt(1, MaxClients);
if(IsClientInGame(iPlayer) && !IsFakeClient(iPlayer) && !bMoveToCT[iPlayer] && GetClientTeam(iPlayer) > CS_TEAM_SPECTATOR)
{
bMoveToCT[iPlayer] = true;
iCTs++;
}
}