Вход

Просмотр полной версии : [Вопрос] Ошибка в логах



DoN_SancheS
06.02.2017, 15:44
Здравствуйте ребята, опять нуждаюсь в вашей помощи :help:


[14:38:31] EnableTirePopping() function is removed.
[14:38:31] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[14:38:31] Çàïðàâêè (ÀÇÑ) çàãðóæåíû
[14:38:31] |Ìàãàçèíû íåçàêîííîé ïðîäóêöèè (ÌÍÏ) çàãðóæåíû
[14:38:31] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[14:38:31] Script[gamemodes/RPG.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[14:38:31] Number of vehicle models: 115
[14:38:31] [debug] Server crashed while executing RPG.amx
[14:38:31] [debug] AMX backtrace:
[14:38:31] [debug] #0 native fwrite () from samp03svr
[14:38:31] [debug] #1 000e830c in public OnPropUpdate () at C:\Users\Karen\Desktop\Okea[N]-RPG\gamemodes\RPG.pwn:13165
[14:38:31] [debug] #2 00067b00 in public OnGameModeExit () at C:\Users\Karen\Desktop\Okea[N]-RPG\gamemodes\RPG.pwn:9167
[14:38:31] [debug] Native backtrace:
[14:38:31] [debug] #0 f74e3180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[14:38:31] [debug] #1 f74db064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[14:38:31] [debug] #2 f74dbd64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[14:38:31] [debug] #3 f74ddcdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[14:38:31] [debug] #4 f74e24d5 in ?? () from plugins/crashdetect.so
[14:38:31] [debug] #5 f77cf420 in ?? ()
[14:38:31] [debug] #6 f77cf440 in ?? ()
[14:38:31] [debug] #7 f75366c1 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[14:38:31] [debug] #8 f7539af2 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[14:38:31] [debug] #9 f752f878 in __assert_fail () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[14:38:31] [debug] #10 0809b99c in ?? () from ./samp03svr
[14:38:31] [debug] #11 0809bdff in ?? () from ./samp03svr
[14:38:31] [debug] #12 080950e4 in ?? () from ./samp03svr
[14:38:31] [debug] #13 f74dcad3 in _ZN11CrashDetect17HandleAMXCallbackEiPiS0_ () from plugins/crashdetect.so
[14:38:31] [debug] #14 0a18ffc8 in ?? () from `˜y÷–y÷Äà2
[14:38:31] [debug] Äà2
[14:38:31] [debug] Åâ2
[14:38:31] [debug] Äà2
[14:38:31] [debug] sä2
[14:38:31] [debug] Ää2
[14:38:31] [debug] 4z÷
[14:38:31] [debug] Registers:
[14:38:31] [debug] EAX: 00000000 EBX: 00007625 ECX: 00007625 EDX: 00000006
[14:38:31] [debug] ESI: f764ae18 EDI: f766fff4 EBP: ffbf3c28 ESP: ffbf3c10
[14:38:31] [debug] EIP: f77cf440 EFLAGS: 00000296
[14:38:31] [debug] Stack:
[14:38:31] [debug] ESP+00000000: ffbf3c28 00000006 00007625 f75366c1
[14:38:31] [debug] ESP+00000020: 00000006 ffbf3cc8 00000000 ffbf3c70
[14:38:31] [debug] ESP+00000040: ffbf3c8c 00000068 00000058 0000004f
[14:38:31] [debug] ESP+00000060: ffbf3d38 f7570aa2 0a23f018 0000004f
[14:38:31] [debug] ESP+00000080: 0a23f018 0a23f018 0a23f018 0a23f018
[14:38:31] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[14:38:31] [debug] ESP+000000c0: 00000000 00000000 00000000 00000000
[14:38:31] [debug] ESP+000000e0: 00000000 00000000 00000000 00000000
[14:38:31] [debug] ESP+00000100: 00000000 00000000 00000000 00000000
[14:38:31] [debug] ESP+00000120: 00000000 00000000 00000000 00000000
[14:38:31] [debug] ESP+00000140: ffbf3d98 f752f878 00000000 f764cfd5
[14:38:31] [debug] ESP+00000160: 08158b24 f764ae18 08158ac6 f764ae18
[14:38:31] [debug] ESP+00000180: 00000000 f5a242d4 ffbf3dc8 0809b99c
[14:38:31] [debug] ESP+000001a0: f5a24240 ffbf3dd8 00000000 f5a242c8
[14:38:31] [debug] ESP+000001c0: 00000001 ffbf3de8 ffbf3dec 00000000
[14:38:31] [debug] ESP+000001e0: f4e76008 00000888 ffbf3e28 080950e4
[14:38:31] [debug] ESP+00000200: ffbf3f20 00000000 0809bd70 f7507ff4
[14:38:31] [debug] ESP+00000220: 0a18ffc8 0000001c ffbf401c f5a242c8
[14:38:31] [debug] ESP+00000240: 00000000 ffffffff f766fff4 f77ecce0
[14:38:31] [debug] ESP+00000260: 00000000 00000000 00000002 00000000
[14:38:31] [debug] ESP+00000280: 09f1eac8 09f1eac8 f77ed908 f77ed06c
[14:38:31] [debug] ESP+000002a0: 00000018 0a30b934 f77044bf f76713c0
[14:38:31] [debug] ESP+000002c0: 09f1c170 ffbf3e68 f75809bc 00000000
[14:38:31] [debug] ESP+000002e0: 09f1d760 ffbf3f04 f761d2ba 00000000
[14:38:31] [debug] ESP+00000300: 00000000 ffbf3ff4 f77dddb6 f74dc5a4
[14:38:31] [debug] ESP+00000320: 0000001c 0a18ffc8 00000000 008b421c
[14:38:31] [debug] ESP+00000340: f77ecce0 09f1d760 ffbf3ff4 ffbf3f1c
[14:38:31] [debug] ESP+00000360: 0a18ffc8 0a190040 ffbf41ac f74e1560
[14:38:31] [debug] ESP+00000380: 00000000 00000000 00000000 00000000
[14:38:31] [debug] ESP+000003a0: 0a18ffc8 f4f60b6c f4e78864 f74e550f
[14:38:31] [debug] ESP+000003c0: f766fff4 f76713c0 000e830c f4e76008
[14:38:31] [debug] ESP+000003e0: 008b421c 008b4234 008b0238 f4e78864
[14:38:31] [debug] Loaded modules:
[14:38:31] [debug] 00000000 - 00187d1f samp03svr
[14:38:31] [debug] f77d1000 - f77d1540
[14:38:31] [debug] f77bd000 - f77bf23f /lib/i386-linux-gnu/i686/cmov/libdl.so.2
[14:38:31] [debug] f77a4000 - f77bbbfb /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
[14:38:31] [debug] f76b7000 - f77a9e97 /usr/lib/i386-linux-gnu/libstdc++.so.6
[14:38:31] [debug] f7691000 - f76b55eb /lib/i386-linux-gnu/i686/cmov/libm.so.6
[14:38:31] [debug] f7674000 - f7690278 /lib/i386-linux-gnu/libgcc_s.so.1
[14:38:31] [debug] f750c000 - f7676dc3 /lib/i386-linux-gnu/i686/cmov/libc.so.6
[14:38:31] [debug] f77d0000 - f77ec2cc /lib/ld-linux.so.2
[14:38:31] [debug] f74c5000 - f7507ac4 plugins/crashdetect.so
[14:38:31] [debug] f741f000 - f74c514c plugins/streamer.so
[14:38:31] [debug] f740a000 - f7410a0b /lib/i386-linux-gnu/i686/cmov/librt.so.1
[14:38:31] [debug] f73f9000 - f7408390 plugins/sscanf.so
[14:38:31] [debug] f7055000 - f73fdac7 plugins/mysql_static.so
[14:38:31] [debug] f663d000 - f6646887 /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2


Вот строка 13165

else
{
file2 = fopen("Diamond/house.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}

А вот строка 9167

public OnGameModeExit()
{
TextDrawDestroy(Light);
OnPropUpdate();
return 1;
}

DeimoS
06.02.2017, 15:54
Файл, скорее всего, не создан

else
{
file2 = fopen("Diamond/house.cfg", io_append);
}
if(!file2)
return print("Не удалось открыть файл \"Diamond/house.cfg\"");
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}

DoN_SancheS
06.02.2017, 16:36
Файл, скорее всего, не создан

else
{
file2 = fopen("Diamond/house.cfg", io_append);
}
if(!file2)
return print("Не удалось открыть файл \"Diamond/house.cfg\"");
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}

Увидел твой ник в теме, подумал сейчас опять будет что то типа "Ты думаешь мы должны исправить твои ошибки?" или "Сам не уложив ни капли усилий ждешь нашей помощи" но нет, в этот раз ты поднял моё настроение, Спасибо :good:

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

Кстати я убрал одну ошибку Script[gamemodes/RPG.amx]: Run time error 20: "Invalid index parameter (bad entry point)" добавив main () {} в начале мода, и после твоего совета в логах остался только вот это:

[15:25:23] EnableTirePopping() function is removed.
[15:25:23] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[15:25:23] Заправки (АЗС) загружены
[15:25:23] |Магазины незаконной продукции (МНП) загружены
[15:25:23] Number of vehicle models: 115
[15:25:23] Не удалось открыть файл "Diamond/house.cfg"
[15:25:36] EnableTirePopping() function is removed.
[15:25:36] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[15:25:36] Заправки (АЗС) загружены
[15:25:36] |Магазины незаконной продукции (МНП) загружены
[15:25:36] Number of vehicle models: 115

Web
06.02.2017, 16:43
Следует убрать функции:


EnableTirePopping()
AllowAdminTeleport()

Так как они были убраны в сампе.

Ну и стоит проверить наличие house.cfg в папке Diamond

DoN_SancheS
06.02.2017, 16:46
В моде про AllowAdminTelleport() есть только это:

}
SetNameTagDrawDistance(30.0);
LimitPlayerMarkerRadius(100.0);
EnableTirePopping(1);
AllowInteriorWeapons(1);
AllowAdminTeleport(0);
SetWeather(2);
for(new i = 0; i < sizeof(CreatedCars); i++)

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


Следует убрать функции:


EnableTirePopping()
AllowAdminTeleport()

Так как они были убраны в сампе.

Ну и стоит проверить наличие house.cfg в папке Diamond

Просто удалить их всё?

Web
06.02.2017, 16:48
Да.

DoN_SancheS
06.02.2017, 17:18
Так ребята, у меня раньше houese.cfg был в папке diamond но теперь house стоит на MySQL и не знаю что делать теперь, да и походу с MySQL грузятся только МНП и АЗС а бизы и сбизы нет, что делать помогите пж.

Web
06.02.2017, 18:04
Сделать аналогично МНП и АЗС.

StevenH
06.02.2017, 19:44
Сделать аналогично МНП и АЗС.

Т.е. ты предлагаешь МНП и АЗС с MySQL перевести на mxINI? Мазахист? :dirol:

Web
06.02.2017, 20:02
Т.е. ты предлагаешь МНП и АЗС с MySQL перевести на mxINI? Мазахист? :dirol:

>да и походу с MySQL грузятся только МНП и АЗС

mxini? Я предлагаю по аналогии МНП и АЗС переписать загрузку/сохранение.

Alpano
06.02.2017, 20:02
Если что-то и переносить, то SQLite...
Да и с MySQL удобно переносить.

StevenH
06.02.2017, 20:13
>да и походу с MySQL грузятся только МНП и АЗС

mxini? Я предлагаю по аналогии МНП и АЗС переписать загрузку/сохранение.

Все переводи на MySQL, от mxINI отказывайся!

Web
06.02.2017, 20:28
DoN_SancheS и перписал.
Да видимо не удачно.

DoN_SancheS
06.02.2017, 23:06
Ребят причем тут МНП и АЗС, я прощу вас показать мне как надо сделать чтобы сервер грузил house.cfg с MySQL и чтоб больше не искал его в папке Diamond.

Web
07.02.2017, 00:28
Ну ты смотри как у тебя загружает и сохраняет АЗС/МНП и делай по аналогии сохранение/загрузку домов.