Код
L 07/01/2015 - 08:10:42: [SM] Plugin encountered error 30: Script execution timed out
L 07/01/2015 - 08:10:42: [SM] Displaying call stack trace for plugin "Mod.smx":
L 07/01/2015 - 08:10:42: [SM] [0] Line 6, C:\Users\А\Desktop\pwn\sourcemod\scripting\Mod/functions/GetRandomPlayer.sp::GetRandomPlayer()
.
.
.
L 07/01/2015 - 08:11:42: [SM] Plugin encountered error 30: Script execution timed out
Код
GetRandomPlayer(team,sost)
{
new indexes[MaxClients+1], players = 0;
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i))
{
6 строка - IsClientInGame(i)
Что ему не нравиться?!
Добавлено (01.07.2015, 23:27:02)
---------------------------------------------
Код
L 07/01/2015 - 10:45:50: [SM] Plugin encountered error 30: Script execution timed out
L 07/01/2015 - 10:45:50: [SM] Displaying call stack trace for plugin "SG_JailMod.smx":
L 07/01/2015 - 10:45:50: [SM] [0] Line 24, C:\Users\А\Desktop\pwn\sourcemod\scripting\SGJM/standart/clean_old_ban.sp::CleanOldBan()
Код
new Handle:kv_ = CreateKeyValues("bd");
if (FileToKeyValues(kv_, "addons/bd.txt") && KvJumpToKey(kv_, KeyName))
{
KvDeleteThis(kv_);
KvRewind(kv_);
KeyValuesToFile(kv_, "addons/bd.txt");
}
CloseHandle(kv_);
24 строка - CloseHandle(kv_);
Что тут не так..?