32人服换队伍程序假死,请高手解决,谢谢。
{new playersCT
new playersT
new nbrCT, nbrT
client_print(0,print_chat,"上半场比赛结束,交换队伍")
get_players(playersCT,nbrCT,"e","CT")
get_players(playersT,nbrT,"e","TERRORIST")
for(new i = 0; i < nbrCT; i++)
{
cs_set_user_team(playersCT, CS_TEAM_T)
client_print(playersCT,print_chat,"* [提示] 你被转移到恐怖分子一方", playersCT, "NOW_ON_T")
}
for(new i = 0; i < nbrT; i++)
{
cs_set_user_team(playersT, CS_TEAM_CT)
client_print(playersT, print_chat, "* [提示] 你被转移到反恐精英一方", playersT, "NOW_ON_CT")
}
}
}
这是比赛插件里的换队伍的代码,可在32人的服里只要一运行就程序假死请问是什么原因?难道只能在16人或以下才能正常运行吗?十分感谢。
页:
[1]