Nikit[A]
Ученик
Нарушение правил форума 4.11
У меня в моде есть команда /fpanel (создавать фракции и редактировать действующие), при вводе команды - крашится сервер. Помогите. Лог:
Сама команда.
Case 8999.
Case 9000.
Case 9001.
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[16:35:50] filterscripts = "" (string)
[16:35:50]
[16:35:50] Server Plugins
[16:35:50] --------------
[16:35:50] Loading plugin: crashdetect.so
[16:35:50] CrashDetect plugin 4.20
[16:35:50] Loaded.
[16:35:50] Loading plugin: CRP.so
[16:35:50]
[16:35:50] ______________________________________
[16:35:50] Convert Rus To Pwn v0.1.1 loaded
[16:35:50] ______________________________________
[16:35:50] By: Fro (c) Copyright <TBG> 2009-2011
[16:35:50] ______________________________________
[16:35:50] Loaded.
[16:35:50] Loading plugin: CVector.so
[16:35:50] -------------------------------------------------------
[16:35:50] - -
[16:35:50] - Vectoral Pawn v1.0 Loaded -
[16:35:50] - by Skyline. -
[16:35:50] - -
[16:35:50] -------------------------------------------------------
[16:35:50] Loaded.
[16:35:50] Loading plugin: dc_cmd.so
[16:35:50] Daniel's CMD plugin v2.8
[16:35:50] (c) 2014 Daniel_Cortez
[16:35:50] ссылка удалена
[16:35:50] Loaded.
[16:35:50] Loading plugin: mysql.so
[16:35:50] Failed (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory)
[16:35:50] Loading plugin: mysql_static.so
[16:35:50] >> plugin.mysql: R39-2 successfully loaded.
[16:35:50] Loaded.
[16:35:50] Loading plugin: streamer.so
[16:35:50]
*** Streamer Plugin v2.9.1 by Incognito loaded ***
[16:35:50] Loaded.
[16:35:50] Loading plugin: sscanf.so
[16:35:50]
[16:35:50] ===============================
[16:35:50] sscanf plugin loaded.
[16:35:50] Version: 2.8.1
[16:35:50] (c) 2012 Alex "Y_Less" Cole
[16:35:50] ===============================
[16:35:50] Loaded.
[16:35:50] Loading plugin: TOTP.so
[16:35:50] TOTP plugin v1.0.0 by Games loaded.
[16:35:50] Loaded.
[16:35:50] Loaded 8 plugins.
[16:35:50]
[16:35:50] Ban list
[16:35:50] --------
[16:35:50] Loaded: samp.ban
[16:35:50]
[16:35:50]
[16:35:50] Filterscripts
[16:35:50] ---------------
[16:35:50] Loaded 0 filterscripts.
[16:35:50]
[16:35:50]
[16:35:50]
[16:35:50] =======================================
[16:35:50] | |
[16:35:50] | YSI version 1.06.0002 |
[16:35:50] | By Alex "Y_Less" Cole |
[16:35:50] | |
[16:35:50] =======================================
[16:35:50]
[16:35:50] [debug] Long callback execution detected (hang or performance issue)
[16:35:50] [debug] AMX backtrace:
[16:35:50] [debug] #0 000de494 in ?? () in reserve.amx
[16:35:50] [debug] #1 002973a8 in public Itter_OnGameModeInit () in reserve.amx
[16:35:50] [debug] #2 native CallLocalFunction () in samp03svr
[16:35:50] [debug] #3 00007554 in public ScriptInit_OnGameModeInit () in reserve.amx
[16:35:50] [debug] #4 0000647c in public dc_cmd_OnGameModeInit () in reserve.amx
[16:35:50] [debug] #5 00006394 in public SSCANF_OnGameModeInit () in reserve.amx
[16:35:50] [debug] #6 0000070c in public OnGameModeInit () in reserve.amx
[16:35:50] Number of vehicle models: 0
[16:35:51] [debug] Long callback execution detected (hang or performance issue)
[16:35:51] [debug] AMX backtrace:
[16:35:51] [debug] #0 002b1acc in public LoadBizz () in reserve.amx
[16:35:51] [bizz]: Всего загружено: 107. Потрачено: 10 мс.
[16:35:51] [gangzones]: Всего загружено: 104. Потрачено: 1 мс.
[16:35:51] [others]: Потрачено: 0 мс.
[16:35:51] [fractions]: Всего загружено: 20. Потрачено: 2 мс.
[16:35:51] [cars]: Всего загружено: 0. Потрачено: 0 мс.
[16:35:51] [enters]: Всего загружено: 88. Потрачено: 2 мс.
[16:35:51] [debug] Long callback execution detected (hang or performance issue)
[16:35:51] [debug] AMX backtrace:
[16:35:51] [debug] #0 002b0198 in public LoadHouse () in reserve.amx
[16:35:51] [houses]: Всего загружено: 502. Потрачено: 19 мс.
[16:35:51] [garages]: Всего загружено: 23. Потрачено: 1 мс.
[16:35:51] [admins]: Всего загружено: 2. Потрачено: 0 мс.
[16:35:51] [debug] Long callback execution detected (hang or performance issue)
[16:35:51] [debug] AMX backtrace:
[16:35:51] [debug] #0 002a23a8 in public LoadVehicles () in reserve.amx
[16:35:51] [vehicles]: Всего загружено: 663. Потрачено: 18 мс.
[16:35:51] [atm]: Всего загружено: 13. Потрачено: 0 мс.
[16:35:51] [greenzones]: Всего загружено: 8. Потрачено: 0 мс.
[16:35:51] [actors]: Всего загружено: 0. Потрачено: 0 мс.
[16:35:52] [debug] Long callback execution detected (hang or performance issue)
[16:35:52] [debug] AMX backtrace:
[16:35:52] [debug] #0 002a9d38 in ?? (48) in reserve.amx
[16:35:52] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:52] [debug] #2 002e3910 in public Second () in reserve.amx
[16:35:53] [debug] Long callback execution detected (hang or performance issue)
[16:35:53] [debug] AMX backtrace:
[16:35:53] [debug] #0 002aa5d8 in ?? (80) in reserve.amx
[16:35:53] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:53] [debug] #2 002e3910 in public Second () in reserve.amx
[16:35:54] [debug] Long callback execution detected (hang or performance issue)
[16:35:54] [debug] AMX backtrace:
[16:35:54] [debug] #0 002a9a90 in ?? (61) in reserve.amx
[16:35:54] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:54] [debug] #2 002e3910 in public Second () in reserve.amx
[16:35:55] [debug] Long callback execution detected (hang or performance issue)
[16:35:55] [debug] AMX backtrace:
[16:35:55] [debug] #0 002a9ba4 in ?? (66) in reserve.amx
[16:35:55] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:55] [debug] #2 002e3910 in public Second () in reserve.amx
[16:35:56] [debug] Long callback execution detected (hang or performance issue)
[16:35:56] [debug] AMX backtrace:
[16:35:56] [debug] #0 002aae24 in ?? (29) in reserve.amx
[16:35:56] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:56] [debug] #2 002e3910 in public Second () in reserve.amx
[16:35:57] [debug] Long callback execution detected (hang or performance issue)
[16:35:57] [debug] AMX backtrace:
[16:35:57] [debug] #0 002ab02c in ?? (80) in reserve.amx
[16:35:57] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:57] [debug] #2 002e3910 in public Second () in reserve.amx
[16:35:58] [debug] Long callback execution detected (hang or performance issue)
[16:35:58] [debug] AMX backtrace:
[16:35:58] [debug] #0 002a948c in ?? (66) in reserve.amx
[16:35:58] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:58] [debug] #2 002e3910 in public Second () in reserve.amx
[16:35:59] [debug] Long callback execution detected (hang or performance issue)
[16:35:59] [debug] AMX backtrace:
[16:35:59] [debug] #0 002aa524 in ?? (66) in reserve.amx
[16:35:59] [debug] #1 003fdb48 in public SaveAll () in reserve.amx
[16:35:59] [debug] #2 002e3910 in public Second () in reserve.amx
[16:36:41] [connection] 178.121.19.161:5315 requests connection cookie.
[16:36:42] [connection] incoming connection: 178.121.19.161:5315 id: 0
[16:36:42] [join] Naza[R] has joined the server (0:178.121.19.161)
[16:37:21] [debug] Long callback execution detected (hang or performance issue)
[16:37:21] [debug] AMX backtrace:
[16:37:21] [debug] #0 002931d0 in ?? (0) in reserve.amx
[16:37:21] [debug] #1 002f4574 in public Second () in reserve.amx
[16:37:33] [debug] Server crashed while executing reserve.amx
[16:37:33] [debug] AMX backtrace:
[16:37:33] [debug] #0 00000065 in ?? (0, 8999, 2, 8504660, 8841716, 8504724, 8504748) in reserve.amx
[16:37:33] [debug] #1 0039e864 in ?? (0, 8827196) in reserve.amx
[16:37:33] [debug] #2 00000065 in public cmd_fpanel () in reserve.amx
Код:
CMD:fpanel(playerid, params[])
{
if(!User[playerid][Login]) return true;
if(GetPVarInt(playerid, "Admins") < 7 || !GetPVarInt(playerid, "AdminLogin")) return SendClientMessage(playerid, LS_ERROR, CommandDoesNotExist);
new str[24];
new string[420];
strcat(string,"Создать фракцию\n");
for(new g = 1; g <= TOTALFRAC; g++)
{
format(str, 50, "%i. %s\n", Fraction[g][fID], Fraction[g][fText]);
strcat(string,str);
}
return ShowPlayerDialogEx(playerid, 8999, 2, "{BD9C6F}Фракции", string, "Выбор", "Закрыть");
}
Код:
case 8999:
{
if(!response) return true;
switch(listitem)
{
case 0: ShowPlayerDialogEx(playerid, 9000, DIALOG_STYLE_INPUT, "{BD9C6F}Создать фракцию", "Введите название фракции", "Далее", "Закрыть");
default:
{
SetPVarInt(playerid,"FRACID",listitem);
ShowPlayerDialogEx(playerid,9001,DIALOG_STYLE_LIST,"{BD9C6F}Редактирование фракции","Изменить название\nИзменить положение спавна\nИзменить интерьер\nИзменить виртуальный мир\nИзменить скины\nИзменить положение склада\nИзменить название рангов\nИзменить цвет фракции\nИзменить ЗП фракции\nИзменить ЗП ранга", "Далее", "Закрыть");
}
}
}
Код:
case 9000:
{
if(!response) return true;
TOTALFRAC++;
mysql_format(DATABASE, QUERY, sizeof(QUERY), "INSERT INTO `fraction` (`fText`) VALUES ('%e')",inputtext);
mysql_function_query(DATABASE, QUERY, false, "", "");
strmid(Fraction[TOTALFRAC][fText],inputtext, 0, strlen(inputtext), 32);
Fraction[TOTALFRAC][fID] = TOTALFRAC;
FracSave(GetPVarInt(playerid,"FRACID"));
new str[80];
new string[128];
strcat(string,"Создать фракцию\n");
for(new g = 1; g <= TOTALFRAC; g++)
{
format(str, 80, "%i. %s\n", Fraction[g][fID], Fraction[g][fText]);
strcat(string,str);
}
return ShowPlayerDialogEx(playerid, 8999, 2, "{BD9C6F}Фракции", string, "Выбор", "Закрыть");
}
Код:
case 9001:
{
if(!response) return true;
switch(listitem)
{
case 0:
{
ShowPlayerDialogEx(playerid, 9002, DIALOG_STYLE_INPUT, "{BD9C6F}Изменить название фракции", "Введите название фракции", "Далее", "Закрыть");
}
case 1:
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
Fraction[GetPVarInt(playerid,"FRACID")][fSpawnPosX] = X;
Fraction[GetPVarInt(playerid,"FRACID")][fSpawnPosY] = Y;
Fraction[GetPVarInt(playerid,"FRACID")][fSpawnPosZ] = Z;
FracSave(GetPVarInt(playerid,"FRACID"));
}
case 2:
{
ShowPlayerDialogEx(playerid, 9003, DIALOG_STYLE_INPUT, "{BD9C6F}Изменить интерьер фракции", "Введите номер интерьера", "Далее", "Закрыть");
}
case 3:
{
ShowPlayerDialogEx(playerid, 9004, DIALOG_STYLE_INPUT, "{BD9C6F}Изменить виртуальный мир фракции", "Введите номер виртуального мира", "Далее", "Закрыть");
}
case 4:
{
new str[51];
new string[128];
strcat(string,"Указать кол-во скинов\n");
for(new g = 1; g <= Fraction[GetPVarInt(playerid,"FRACID")][fSkinKolvo]; g++)
{
format(str, 50, "%i. [%i]\n",g,Fraction[GetPVarInt(playerid,"FRACID")][fSkin][g-1]);
strcat(string,str);
}
return ShowPlayerDialogEx(playerid, 9005, DIALOG_STYLE_LIST, "{BD9C6F}Изменить скины",string, "Выбор", "Закрыть");
}
case 5:
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
Fraction[GetPVarInt(playerid,"FRACID")][fUnloadingPosX] = X;
Fraction[GetPVarInt(playerid,"FRACID")][fUnloadingPosY] = Y;
Fraction[GetPVarInt(playerid,"FRACID")][fUnloadingPosZ] = Z;
FracSave(GetPVarInt(playerid,"FRACID"));
}
case 6:
{
new str[256];
new string[256];
strcat(string,"Указать кол-во рангов\n");
for(new g = 1; g <= Fraction[GetPVarInt(playerid,"FRACID")][fRankMax]; g++)
{
format(str, 255, "%i. [%s]\n",g,FracRank[GetPVarInt(playerid,"FRACID")][g]);
strcat(string,str);
}
return ShowPlayerDialogEx(playerid, 9008, DIALOG_STYLE_LIST, "{BD9C6F}Изменить ранги",string, "Выбор", "Закрыть");
}
case 7: ShowPlayerDialogEx(playerid, 9011, DIALOG_STYLE_INPUT, "{BD9C6F}Изменить цвет", "Введите id цвета. Пример 0xF0F0F0AA", "Далее", "Закрыть");
case 8: ShowPlayerDialogEx(playerid, 9012, DIALOG_STYLE_INPUT, "{BD9C6F}Изменить ЗП фракции", "Введите зарплату фракции", "Далее", "Закрыть");
case 9: ShowPlayerDialogEx(playerid, 9013, DIALOG_STYLE_INPUT, "{BD9C6F}Изменить ЗП ранга", "Введите зарплату ранга", "Далее", "Закрыть");
}
}
Последнее редактирование модератором:
