Русское сообщество по скриптингу

Помогите пожалуйста исходник не компилируется

Все вопросы по скриптингу для SourceMod, помощь в редактировании плагинов.
Правила форума
1. Запрещено материться и оскорблять других участников форума.
2. Запрещен флуд, оффтоп, дабл постинг во всех разделах форума, кроме раздела "Болтовня".
3. Запрещено взламывать сайт/форум или наносить любой вред проекту.
4. Запрещено рекламировать другие ресурсы.
5. Запрещено создавать темы без информативного названия. Название темы должно отображать ее смысл.

В данном разделе форума разрешено создавать темы, касающие только скриптингу для SourceMod.

Правила при создании новой темы:
1. При вставке кода плагина необходимо использовать тег [pawn], в противном случае, если тег [pawn] не отображает ваш код, можно использовать тег [code].
2. Любые изображения должны быть загружены, как вложения к вашему сообщению.
3. При описании проблемы или запросе на помощь в редактировании плагина обязательно выкладывайте исходник sp плагина.

Помогите пожалуйста исходник не компилируется

Сообщение Vantuz » 23 фев 2023, 19:58

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fun>
#include <engine>
#include <hamsandwich>
#include <dhudmessage>
#include <cstrike>
#include <nvault>
#include <sqlx>

#define JBE_MODE_VERSION "\y• \dВерсия сборки: \y'v5.0'^n" /////Показывает в меню информации.

#pragma semicolon 1 ////Проверка на ";" 1 - Вкл / 0 - Выкл

#define CVAR_MODEL_DEVIL "models/player/jbe_devil_model/jbe_devil_model.mdl"
#define CVAR_MODEL_DEDECTIV "models/player/detectiv/detectiv.mdl"

#define jbe_is_user_valid(%0) (%0 && %0 <= g_iMaxPlayers)
#define MAX_PLAYERS 32
#define IUSER1_DOOR_KEY 376027
#define IUSER1_BUYZONE_KEY 140658
#define IUSER1_FROSTNADE_KEY 235876
#define TASK_ID_FROZENT 335876
#define PLAYERS_PER_PAGE 8

#define HUD_HIDE_MONEY (1<<5) ////Деньги (Значения не трогать)
#define HUD_HIDE_RHA (1<<3) ////Радар, хп, броня (Значения не трогать)
#define HIDE_TIMER (1<<4) ////Убираем таймер (Полезно для REHLDS) (Значения не трогать)

#define TOTAL_PLAYER_LEVELS 16
#define MAX_LEVEL TOTAL_PLAYER_LEVELS - 1

/* -> Стартовый цвет информера -> */

#define JBE_INRED 100 ///Красный
#define JBE_INGREEN 100 ///Зеленый
#define JBE_INBLUE 100 ///Синий

/* -> Бит сумм -> */
#define SetBit(%0,%1) ((%0) |= (1 << (%1)))
#define ClearBit(%0,%1) ((%0) &= ~(1 << (%1)))
#define IsSetBit(%0,%1) ((%0) & (1 << (%1)))
#define InvertBit(%0,%1) ((%0) ^= (1 << (%1)))
#define IsNotSetBit(%0,%1) (~(%0) & (1 << (%1)))

/* -> Оффсеты -> */
#define linux_diff_weapon 4
#define linux_diff_animating 4
#define linux_diff_player 5
#define ACT_RANGE_ATTACK1 28
#define m_flFrameRate 36
#define m_flGroundSpeed 37
#define m_flLastEventCheck 38
#define m_fSequenceFinished 39
#define m_fSequenceLoops 40
#define m_pPlayer 41
#define m_flNextSecondaryAttack 47
#define m_iClip 51
#define m_Activity 73
#define m_IdealActivity 74
#define m_LastHitGroup 75
#define m_flNextAttack 83
#define m_bloodColor 89
#define m_iPlayerTeam 114
#define m_fHasPrimary 116
#define m_bHasChangeTeamThisRound 125
#define m_flLastAttackTime 220
#define m_afButtonPressed 246
#define m_iHideHUD 361
#define m_iClientHideHUD 362
#define m_iSpawnCount 365
#define m_pActiveItem 373
#define m_flNextDecalTime 486
#define g_szModelIndexPlayer 491
#define MsgId_BarTime 108

/* -> Задачи (Позже поменяю систему) -> */
#define TASK_ROUND_END 486787
#define TASK_CHANGE_MODEL 367678
#define TASK_SHOW_INFORMER 769784
#define TASK_FREE_DAY_ENDED 675754
#define TASK_CHIEF_CHOICE_TIME 867475
#define TASK_COUNT_DOWN_TIMER 645876
#define TASK_VOTE_DAY_MODE_TIMER 856365
#define TASK_RESTART_GAME_TIMER 126554
#define TASK_DAY_MODE_TIMER 783456
#define TASK_SHOW_SOCCER_SCORE 756356
#define TASK_INVISIBLE_HAT 254367
#define TASK_REMOVE_SYRINGE 567989
#define TASK_FROSTNADE_DEFROST 645864
#define TASK_DUEL_COUNT_DOWN 567658
#define TASK_DUEL_BEAMCYLINDER 857576
#define TASK_DUEL_TIMER_ATTACK 735756
#define TASK_GOLOD_GAME_TIME 234783







ошибки:
AMX Mod X Compiler 1.9.0.5271
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(19) : error 021: symbol already defined: "set_dhudmessage"
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(24) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(34) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(37) : error 021: symbol already defined: "show_dhudmessage"
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(42) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(44) : warning 218: old style prototypes used with optional semicolumns
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(45) : error 054: unmatched closing brace
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(46) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(49) : warning 218: old style prototypes used with optional semicolumns
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(50) : error 054: unmatched closing brace
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(51) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(54) : error 021: symbol already defined: "get_players"
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(56) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(58) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(63) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(65) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(67) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(70) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(79) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(82) : warning 218: old style prototypes used with optional semicolumns
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(83) : error 054: unmatched closing brace
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(84) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(86) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(90) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(95) : error 021: symbol already defined: "vformat"
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(96) : warning 218: old style prototypes used with optional semicolumns
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(97) : error 054: unmatched closing brace
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(100) : error 021: symbol already defined: "ArrayDestroy"
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(103) : error 010: invalid function or declaration
/hlds/web/api/bin/amxx-1.9.0/include/dhudmessage.inc(106) : error 025: function heading differs from prototype

Compilation aborted.
26 Errors.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
timeout: the monitored command dumped core

Ссылка на исходник : Вы должны зарегистрироваться, чтобы видеть ссылки.
Аватара пользователя
Vantuz
 
Сообщения: 1
Зарегистрирован: 23 фев 2023, 19:54
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.
Языки программирования: Я ничего не знаю

Re: Помогите пожалуйста исходник не компилируется

Сообщение [N][E][M][E][C] » 28 фев 2023, 12:23

-#include <dhudmessage>
+//#include <dhudmessage>
Аватара пользователя
[N][E][M][E][C]
 
Сообщения: 641
Зарегистрирован: 14 фев 2021, 10:48
Благодарил (а): 50 раз.
Поблагодарили: 89 раз.
Опыт программирования: Около года
Языки программирования: Нуждаюсь в помощи


Вернуться в Скриптинг

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3