ReAmx Super error log

Сообщения
278
Реакции
137
Ошибка
L 08/25/2019 - 19:47:35: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.3")
L 08/25/2019 - 19:47:35: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:35: [AMXX] [0] reamx_super.sma::@call_func (line 196)
L 08/25/2019 - 19:47:35: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.3")
L 08/25/2019 - 19:47:35: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:35: [AMXX] [0] reamx_super.sma::@call_func (line 196)
L 08/25/2019 - 19:47:36: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.3")
L 08/25/2019 - 19:47:36: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:36: [AMXX] [0] reamx_super.sma::@call_func (line 196)
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5249 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 19 2019 13:31:53
Built from: https://github.com/alliedmodders/amxmodx/commit/6cecb34
Build ID: 5249:6cecb34
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.685-dev
Build date: 16:27:16 Aug 11 2019 (1947)
Build from: https://github.com/dreamstalker/rehlds/commit/5b68568
ReGamedll
ReGameDLL version: 5.9.0.366-dev
Build date: 15:46:24 Jul 30 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/0104389
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY
[ 2] VoiceTranscoder RUN - vtc.so v2017RC3 ini ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 4] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5249 ini ANY
[ 5] WHBlocker RUN - whblocker.so v1.5.696 ini ANY
[ 6] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 7] ReAuthCheck RUN - reauthcheck.so v0.1.6 ini Start Never
[ 8] ReSRDetector RUN - resrdetector.so v0.1.0 ini ANY
[ 9] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[10] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5249 pl4 ANY
[11] ReAPI RUN - reapi_amxx_i386.so v5.9.0.178-dev pl4 ANY Never
[12] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl4 ANY
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl4 ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl4 ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl4 ANY
15 plugins, 15 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] ReAmx_Super 1.4 PurposeLess reamx_super.amxx running
1 plugins, 1 running
Автор плагина
PurposeLess
Версия плагина
1.4
Исходный код
No source
I added kind of new things and tried to make it working. But it didn't work and it gave errors.

Error
PHP:
L 08/25/2019 - 19:47:35: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.4")
L 08/25/2019 - 19:47:35: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:35: [AMXX]    [0] reamx_super.sma::@call_func (line 196)
L 08/25/2019 - 19:47:35: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.4")
L 08/25/2019 - 19:47:35: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:35: [AMXX]    [0] reamx_super.sma::@call_func (line 196)
L 08/25/2019 - 19:47:36: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.4")
L 08/25/2019 - 19:47:36: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:36: [AMXX]    [0] reamx_super.sma::@call_func (line 196)
 

Вложения

Последнее редактирование:
Сообщения
278
Реакции
137
Alex1985,
What? Why do you give an answer of another error I don't have?
I need help to fix error and there is nothing there to fix error.
 
Сообщения
278
Реакции
137
They all are new, [invisible, fire, multijump (doublejump)]

Actually 1.3 version sometimes works, sometimes doesn't work.
Kind of weird.

PHP:
register_concmd("amx_invisible", "@call_func", INVISIBLE, "<nick, #userid or #authid> [0|1]");
register_concmd("amx_fire", "@call_func", FIRE, "<nick, #userid or #authid> [0|1]");
register_concmd("amx_multijump", "@call_func", DOUBLEJUMP, "<nick, #userid or #authid> [0|1]");
 
Сообщения
1,698
Реакции
1,510
Помог
26 раз(а)
Сообщения
278
Реакции
137
PHP:
L 08/25/2019 - 19:47:35: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.3")
L 08/25/2019 - 19:47:35: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:35: [AMXX]    [0] reamx_super.sma::@call_func (line 196)
L 08/25/2019 - 19:47:35: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.3")
L 08/25/2019 - 19:47:35: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:35: [AMXX]    [0] reamx_super.sma::@call_func (line 196)
L 08/25/2019 - 19:47:36: [AMXX] Displaying debug trace (plugin "reamx_super.amxx", version "1.3")
L 08/25/2019 - 19:47:36: [AMXX] Run time error 4: index out of bounds
L 08/25/2019 - 19:47:36: [AMXX]    [0] reamx_super.sma::@call_func (line 196)
 
Сообщения
1,698
Реакции
1,510
Помог
26 раз(а)
client_print(0, print_chat, "%d", action);
client_print(0, print_chat, "%d", sizeof(access_array));
client_print(0, print_chat, "%d", access_array[action]);
 
Сообщения
278
Реакции
137
Код:
] amx_heal zw 1
] amx_gravity 800
] amx_alltalk 1
] ....
4096
35

] amx_multijump zw 1
34
35
4

] amx_bury zw
8192
35
 
Сообщения
1,698
Реакции
1,510
Помог
26 раз(а)
You need to convert action bits to action int before check flags
 
Сообщения
64
Реакции
131
Помог
4 раз(а)
Код:
register_concmd("amx_heal", "@call_func", HEAL, "<nick, #userid, authid or @team> <HP to give>");
...
etc.
->
Код:
register_concmd("amx_heal", "@call_func", access_array[HEAL], "<nick, #userid, authid or @team> <HP to give>");
...
etc.
Код:
@call_func(const id, const action)
{
    if(~get_user_flags(id) & access_array[action])
    {
         console_print(id, "%L", id, "NO_ACC_COM");
         return PLUGIN_HANDLED;
    }
->
Код:
@call_func(const id, const flags)
{
    if(~get_user_flags(id) & flags)
    {
         console_print(id, "%L", id, "NO_ACC_COM");
         return PLUGIN_HANDLED;
    }
 
Последнее редактирование:
Сообщения
1,698
Реакции
1,510
Помог
26 раз(а)
BaHeK, как он потом акшн засвитчит?
 
Сообщения
64
Реакции
131
Помог
4 раз(а)
fl0wer, мда, говнокод куда хуже, чем на первый взгляд, тут даже нет простых решений переписать это в рабочий вариант
 
Сообщения
278
Реакции
137
BaHeK,
We can't continue about checking switch(action)
 
Последнее редактирование:
Сообщения
1,698
Реакции
1,510
Помог
26 раз(а)
18490

Что с вами не так? Скачал плагин, поставил, всё работает.
 
Сообщения
278
Реакции
137
It gives me errors while using. It started while I am using "One Function".
If you want, I will send screenshot about error.
 
Сообщения
64
Реакции
131
Помог
4 раз(а)
fl0wer, я предполагаю, что был изменен флаг через cmdaccess.ini от сюда и такие числа в action

UPD: ну такой костыль можно попробовать, тогда и cmdaccess.ini будет работать

add
Код:
new cid_array[actions];

public get_action_by_cid(const cid) {
    new size = sizeof(cid_array);
    for(new i = 0; i < size; i++) {
        if(cid == cid_array[i]) {
            return i;
        }
    }
 
    return -1;
}


Код:
register_concmd("amx_heal", "@call_func", HEAL, "<nick, #userid, authid or @team> <HP to give>");
...
etc.
->
Код:
cid_array[HEAL] = register_concmd("amx_heal", "@call_func", access_array[HEAL], "<nick, #userid, authid or @team> <HP to give>");
...
etc.


Код:
@call_func(const id, const action)
{
    if(~get_user_flags(id) & access_array[action])
    {
         console_print(id, "%L", id, "NO_ACC_COM");
         return PLUGIN_HANDLED;
    }
->
Код:
@call_func(const id, const flags, const cid)
{
    if(~get_user_flags(id) & flags)
    {
         console_print(id, "%L", id, "NO_ACC_COM");
         return PLUGIN_HANDLED;
    }

    new action = get_action_by_cid(cid);
 
Последнее редактирование:

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу