PDA

Просмотр полной версии : [Вопрос] Краш сервера



bla
28.03.2015, 21:17
[20:03:13] [debug] Server crashed while executing new.amx
[20:03:13] [debug] AMX backtrace:
[20:03:13] [debug] #0 native CreateMenu () from samp-server.exe
[20:03:13] [debug] #1 00005ec0 in public SSCANF_OnGameModeInit () from new.amx
[20:03:13] [debug] #2 00000220 in public dc_cmd_OnGameModeInit () from new.amx
[20:03:13] [debug] #3 00000114 in public OnGameModeInit () from new.amx
[20:03:13] [debug] Native backtrace:
[20:03:13] [debug] #0 00488084 in ?? () from samp-server.exe
[20:03:13] [debug] #1 004010b6 in ?? () from samp-server.exe
[20:03:13] [debug] #2 580b62ca in ?? () from plugins\crashdetect.DLL
[20:03:13] [debug] #3 580b8b28 in ?? () from plugins\crashdetect.DLL
[20:03:13] [debug] #4 580b09c7 in ?? () from plugins\crashdetect.DLL
[20:03:13] [debug] #5 580b631a in ?? () from plugins\crashdetect.DLL
[20:03:13] [debug] #6 0046e8d4 in ?? () from samp-server.exe
[20:03:13] [debug] #7 65646f6d in ?? () from samp-server.exe
[20:03:13] [debug] #8 656e2f73 in ?? () from samp-server.exe
[20:03:13] [debug] #9 6d612e77 in ?? () from samp-server.exe


- - - Добавлено - - -

Решил проблему сам.

chooseskin = CreateMenu("", 1, 50.0, 160.0, 90.0); // До
chooseskin = CreateMenu("name", 1, 50.0, 160.0, 90.0); // После

Сервер не крашит. Цирк.

L0ndl3m
29.03.2015, 21:55
Нельзя создавать меню, диалоги с пустым названием. Может быть не сработает функция / крашнет сервер и т.п.