Bot plugin make error

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
43
Реакции
0
Неверный раздел форума
Hello who can help me i find one plugin in google for bots in server but when i set make error i dont know why
Код:
L 05/18/2024 - 07:56:38: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20240518.log")
L 05/18/2024 - 07:56:38: [CSTRIKE] Invalid player 1 (not in-game)
L 05/18/2024 - 07:56:38: [AMXX] Displaying debug trace (plugin "fakefull_bot.amxx", version "1.1")
L 05/18/2024 - 07:56:38: [AMXX] Run time error 10: native error (native "cs_set_user_team")
L 05/18/2024 - 07:56:38: [AMXX]    [0] fakefull_bot.sma::set_team (line 288)
L 05/18/2024 - 07:56:38: [AMXX]    [1] fakefull_bot.sma::createBot (line 197)
L 05/18/2024 - 07:56:39: [CSTRIKE] Invalid player 2 (not in-game)
L 05/18/2024 - 07:56:39: [AMXX] Displaying debug trace (plugin "fakefull_bot.amxx", version "1.1")
L 05/18/2024 - 07:56:39: [AMXX] Run time error 10: native error (native "cs_set_user_team")
L 05/18/2024 - 07:56:39: [AMXX]    [0] fakefull_bot.sma::set_team (line 288)
L 05/18/2024 - 07:56:39: [AMXX]    [1] fakefull_bot.sma::createBot (line 197)
 

Вложения

Сообщения
43
Реакции
0
rcon:
version
meta list
amxx version
game version

why dont you use ReAPI

Код:
Currently loaded plugins:
      description       stat pend  file                        vers             src  load  unload
 [ 1] Reunion           RUN   -    reunion_mm_i386.so          v0.1.0.137       ini  Start Never
 [ 2] VoiceTranscoder   RUN   -    VoiceTranscoder.so          v2017RC5         ini  ANY   ANY 
 [ 3] AMX Mod X         RUN   -    amxmodx_mm_i386.so          v1.10.0.5412     ini  Start ANY 
 [ 4] ReAuthCheck       RUN   -    reauthcheck_mm_i386.so      v0.1.6           ini  Start Never
 [ 5] Rechecker         RUN   -    rechecker_mm_i386.so        v2.7             ini  Chlvl ANY 
 [ 6] ReSemiclip        RUN   -    resemiclip_mm_i386.so       v2.4.3           ini  Chlvl ANY 
 [ 7] WHBlocker         RUN   -    whblocker_mm_i386.so        v1.5.697         ini  Chlvl ANY 
 [ 8] ReSRDetector      RUN   -    resrdetector_mm_i386.so     v0.1.0           ini  Chlvl ANY 
 [ 9] Print Center Fix  RUN   -    printcenterfix_mm_i386.so   v2.0.1           ini  ANY   ANY 
 [10] MySQL             RUN   -    mysql_amxx_i386.so          v1.10.0.5467     pl3  ANY   ANY 
 [11] Fun               RUN   -    fun_amxx_i386.so            v1.10.0.5467     pl3  ANY   ANY 
 [12] Engine            RUN   -    engine_amxx_i386.so         v1.10.0.5467     pl3  ANY   ANY 
 [13] FakeMeta          RUN   -    fakemeta_amxx_i386.so       v1.10.0.5467     pl3  ANY   ANY 
 [14] GeoIP             RUN   -    geoip_amxx_i386.so          v1.10.0.5467     pl3  ANY   ANY 
 [15] CStrike           RUN   -    cstrike_amxx_i386.so        v1.10.0.5467     pl3  ANY   ANY 
 [16] CSX               RUN   -    csx_amxx_i386.so            v1.10.0.5467     pl3  ANY   ANY 
 [17] Ham Sandwich      RUN   -    hamsandwich_amxx_i386.so    v1.10.0.5467     pl3  ANY   ANY 
 [18] ReAimDetector     RUN   -    reaimdetector_amxx_i386.so  v0.2.2           pl3  ANY   Never
 [19] hackdetector      RUN   -    hackdetector_amxx_i386.so   v0.15.328.lite   pl3  ANY   ANY 
 [20] Hide Cvars        RUN   -    hidecvars_amxx_i386.so      v1.0             pl3  ANY   ANY 
 [21] ReAPI             RUN   -    reapi_amxx_i386.so          v5.24.0.300-dev  pl3  ANY   Never
 [22] CURL AMXX         RUN   -    curl_amxx_i386.so           v1.1.1           pl3  ANY   ANY 
 [23] Amxx Easy Http    RUN   -    easy_http_amxx_i386.so      v1.3.0           pl3  ANY   ANY 
 [24] gRIP              RUN   -    grip_amxx_i386.so           v0.1.5 Beta      pl3  ANY   ANY 
 [25] SQLite            RUN   -    sqlite_amxx_i386.so         v1.10.0.5467     pl3  ANY   ANY 
25 plugins, 25 running
18 Май 2024
Код:
Currently loaded plugins:
      description       stat pend  file                        vers             src  load  unload
[ 1] Reunion           RUN   -    reunion_mm_i386.so          v0.1.0.137       ini  Start Never
[ 2] VoiceTranscoder   RUN   -    VoiceTranscoder.so          v2017RC5         ini  ANY   ANY
[ 3] AMX Mod X         RUN   -    amxmodx_mm_i386.so          v1.10.0.5412     ini  Start ANY
[ 4] ReAuthCheck       RUN   -    reauthcheck_mm_i386.so      v0.1.6           ini  Start Never
[ 5] Rechecker         RUN   -    rechecker_mm_i386.so        v2.7             ini  Chlvl ANY
[ 6] ReSemiclip        RUN   -    resemiclip_mm_i386.so       v2.4.3           ini  Chlvl ANY
[ 7] WHBlocker         RUN   -    whblocker_mm_i386.so        v1.5.697         ini  Chlvl ANY
[ 8] ReSRDetector      RUN   -    resrdetector_mm_i386.so     v0.1.0           ini  Chlvl ANY
[ 9] Print Center Fix  RUN   -    printcenterfix_mm_i386.so   v2.0.1           ini  ANY   ANY
[10] MySQL             RUN   -    mysql_amxx_i386.so          v1.10.0.5467     pl3  ANY   ANY
[11] Fun               RUN   -    fun_amxx_i386.so            v1.10.0.5467     pl3  ANY   ANY
[12] Engine            RUN   -    engine_amxx_i386.so         v1.10.0.5467     pl3  ANY   ANY
[13] FakeMeta          RUN   -    fakemeta_amxx_i386.so       v1.10.0.5467     pl3  ANY   ANY
[14] GeoIP             RUN   -    geoip_amxx_i386.so          v1.10.0.5467     pl3  ANY   ANY
[15] CStrike           RUN   -    cstrike_amxx_i386.so        v1.10.0.5467     pl3  ANY   ANY
[16] CSX               RUN   -    csx_amxx_i386.so            v1.10.0.5467     pl3  ANY   ANY
[17] Ham Sandwich      RUN   -    hamsandwich_amxx_i386.so    v1.10.0.5467     pl3  ANY   ANY
[18] ReAimDetector     RUN   -    reaimdetector_amxx_i386.so  v0.2.2           pl3  ANY   Never
[19] hackdetector      RUN   -    hackdetector_amxx_i386.so   v0.15.328.lite   pl3  ANY   ANY
[20] Hide Cvars        RUN   -    hidecvars_amxx_i386.so      v1.0             pl3  ANY   ANY
[21] ReAPI             RUN   -    reapi_amxx_i386.so          v5.24.0.300-dev  pl3  ANY   Never
[22] CURL AMXX         RUN   -    curl_amxx_i386.so           v1.1.1           pl3  ANY   ANY
[23] Amxx Easy Http    RUN   -    easy_http_amxx_i386.so      v1.3.0           pl3  ANY   ANY
[24] gRIP              RUN   -    grip_amxx_i386.so           v0.1.5 Beta      pl3  ANY   ANY
[25] SQLite            RUN   -    sqlite_amxx_i386.so         v1.10.0.5467     pl3  ANY   ANY
25 plugins, 25 running
Код:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07


game version
ReGameDLL version: 5.26.0.668-dev
Build date: 19:02:48 Dec 31 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/d3c0ec8
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
trendafili, замени это и покажи что выдаст в консоль сервера
Код:
public set_team(BotID)
{
    server_print("********** %i", BotID);

    if (cstrike_running()) {
        cs_set_user_team(BotID, CS_TEAM_UNASSIGNED)
    }
}
 
Сообщения
43
Реакции
0
trendafili, replace this and show what it outputs in the server console
Код:
public set_team(BotID)
{
    server_print("********** %i", BotID);

    if (cstrike_running()) {
        cs_set_user_team(BotID, CS_TEAM_UNASSIGNED)
    }
}

L 05/18/2024 - 09:11:39: [CSTRIKE] Invalid player 1 (not in-game)
L 05/18/2024 - 09:11:39: [AMXX] Displaying debug trace (plugin "fakefull_bot.amxx", version "1.1")
L 05/18/2024 - 09:11:39: [AMXX] Run time error 10: native error (native "cs_set_user_team")
L 05/18/2024 - 09:11:39: [AMXX] [0] fakefull_bot.sma::set_team (line 290)
L 05/18/2024 - 09:11:39: [AMXX] [1] fakefull_bot.sma::createBot(line 197);
0
2
L 05/18/2024 - 09:11:39: [admin.amxx] Login: "MPG | LINE1<7979><STEAM_1:1:1236742378><>" became an admin (account "LINE1") (access "abcdefghijklmoprstuxyz") (address "88.152.184.245")
L 05/18/2024 - 09:11:39: [admin.amxx] Login: "MPG | Mr.HeadShoot<7956><STEAM_0:1:200234462><>" became an admin (account "Mr.HeadShoot") (access "abcdefghijklmoprstuxyz") (address "46.99.49.208")
********** 2
L 05/18/2024 - 09:11:40: [CSTRIKE] Invalid player 2 (not in-game)
L 05/18/2024 - 09:11:40: [AMXX] Displaying debug trace (plugin "fakefull_bot.amxx", version "1.1")
L 05/18/2024 - 09:11:40: [AMXX] Run time error 10: native error (native "cs_set_user_team")
L 05/18/2024 - 09:11:40: [AMXX] [0] fakefull_bot.sma::set_team (line 290)
L 05/18/2024 - 09:11:40: [AMXX] [1] fakefull_bot.sma::createBot(line 197);
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
trendafili, пробуй
Код:
public set_team(BotID)
{
    if (cstrike_running() && is_user_connected(BotID)) {
        cs_set_user_team(BotID, CS_TEAM_UNASSIGNED)
    }
}
 
Сообщения
55
Реакции
-1
why dont you use ReAPI bots ?
18 Май 2024
I think amxmodx 1.10 dont support this old plugin in functions.

try to change line 288
cs_set_user_team(BotID, CS_TEAM_UNASSIGNED) to cs_set_user_team(BotID, CS_TEAM_CT)
and update the error logs if line 288 still in error set_team
 
Статус
В этой теме нельзя размещать новые ответы.

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

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