Commit Graph

5466 Commits

Author SHA1 Message Date
475b1cdc29 fix gcc 12.1 compilation 2022-07-10 15:25:45 +00:00
e5c519cf07 update sqlite to version 3.39.0 2022-07-10 15:24:46 +00:00
rtxa
df6b589ba1
nextmap.sma - Fix mp_chattime getting increased on quick map change (#1044) 2022-06-30 23:16:05 -07:00
Rustam Zigandarov
fde732f66d
Update trie_natives.cpp (#1052)
"Invalid map handle provided (%d)" error is very unclear when it appears in complex code.
2022-06-16 18:47:08 -07:00
Rustam Zigandarov
49a8b959b3
Update newmenus.inc (#1043) 2022-04-05 00:32:55 -07:00
Unreal Karaulov
ec82e3f34c
now amxmodx can use std (#1026) 2021-12-06 10:38:46 -08:00
Unreal Karaulov
8ee3da24cb
Added new debug feature: Performance Monitor. (#1019)
* Performance Monitor.

Search big performance issues for any plugin that in debug mode. No server slow down.
Output is plugin and function name, and server execution lag in ms. Output target: current amxlog file.

* Adding cvar to enable perflog. Force for all plugin if amx_debug is 2.

* Update cvar name

* Use another clock from chrono

* Fix debug check

* Skip internal amxx exec

* Move includes

* Fix debug check in amx_ExecPerf

* Tried to compile without min/max undefined
2021-12-05 18:38:49 -08:00
Unreal Karaulov
6e8554d1d2
Fix ConfigsExecutedForward (my mistake) (#1024)
* Fix one big issue what broken all plugins!

If found any config from servercmd, m_ConfigsExecutedForward not called !!!!!!!
If m_ConfigsExecutedForward  not called, this is broke all plugins where used m_ConfigsExecutedForward (example restmenu)

Revert "Fix one big issue what broken all plugins!"

This reverts commit 6ce36f22e1c278f0831ebbddbc1dbbceb91dacb9.

* Fix m_ConfigsExecutedForward after my missprint from previous pr

Fix my missprint from previous pull request 275be8b0a8
2021-12-04 12:04:08 -08:00
Unreal Karaulov
275be8b0a8
Fix one big issue what broken all plugins! (#1022)
If found any config from servercmd, m_ConfigsExecutedForward not called !!!!!!!
If m_ConfigsExecutedForward  not called, this is broke all plugins where used m_ConfigsExecutedForward (example restmenu)
2021-12-03 15:07:59 -08:00
Unreal Karaulov
f8ac58c839
Fix some misprints and mistakes in code, part 2 (#1021)
* Fix compiler warnings about broken syntax

Revert "Fix compiler warnings about broken syntax"

This reverts commit cd0649806feaab064e93a0fbcd1f4488747f9b79.

Unbreak code

* Unbreak code

* Stop breaking code, please

* Small real unused check

* Fix "breaked" code and fix MAX_WEAPONS misprints

* Compiler break in debug mode if passing upper case strings
2021-12-02 21:24:15 -08:00
Hedel Nasser
e8909c1583
Fixed value check in json_object_set_value (#1015)
Regression from #983
2021-12-02 19:32:04 -08:00
Unreal Karaulov
3cda059669
Fix some errors (#1020)
Fix some critical errors
2021-12-02 13:47:57 -08:00
Harsha Raghu
5dcda02b65
[Build] Implement CI for MacOS via appveyor (#1013) 2021-10-24 17:22:56 -07:00
pizzahut2
e6d9d9b71c
Update stats.sma (#1001)
Triggered the "Invalid weapon id" at another location in the source code, so patched all cases where the argument could be 0.
2021-10-07 17:12:37 -07:00
Adam Richard
2563bf6c26
Updated get_user_flags documentation (#1007) 2021-10-07 17:12:04 -07:00
Harsha Raghu
c61735130d
[Build] Fix latest MSVC and CLang compiler errors (#1008)
* Explicit cast specification

* Explicit cast specification

* Suppress -Wno-tautological-compare in Clang 10 and above

https://reviews.llvm.org/rG8b0d14a8f0cc085afa2a9c86c237da81c74517fc

* Explicit cast specification

* Add HAVE_STDINT_H compiler flag

* Explicit casting mechanism type specification

* typo
2021-10-07 17:11:49 -07:00
Harsha Raghu
cac80584a0
Setup Github Actions (#1003) 2021-10-05 23:39:38 -07:00
Harsha Raghu
3eefe5562e
[Build] Migrate to Python3 (#1000)
* Configure Travis build env for Py3

Using default available version of 3.6.3 in `xenial` dist

* Migrate to py3

* Fix documentation
2021-09-28 11:41:04 -07:00
pizzahut2
c317dc55c7
Update stats.sma (#997)
Fix runtime error when a player "killed self with teledeath". Happens when a map hasn't enough spawn points.
2021-09-28 09:56:21 -07:00
Harsha Raghu
8fefd48af2
Create FUNDING.yml and add a ❤️Sponser button (#994) 2021-09-23 10:12:43 -07:00
shel
f37f9d1c66
Fix gcc 9.2 compilation. (#835)
Fix gcc 9.2 compilation.
2021-09-22 17:01:35 -07:00
Daniele386
8413946ace
Minor German Language Update (#926)
* Update admincmd.txt

* Update statsx.txt

* Update miscstats.txt

* Update menufront.txt

* Update menufront.txt

* Update admincmd.txt

* Update adminvote.txt

* Update restmenu.txt

* Update mapsmenu.txt

* Update nextmap.txt

* Update stats_dod.txt

* Update statscfg.txt

* Update stats_dod.txt

* Update adminvote.txt
2021-09-17 13:22:30 +02:00
Smilex_Gamer
be9ccc42eb
European Portuguese Language translation fixes (#902)
* European Portuguese translation fix: admin.txt

* European Portuguese translation fix: admincmd.txt

* Added European Portuguese translation: adminslots.txt

Added new translations

* European Portuguese translation fix: common.txt

* European Portuguese translation fix: menufront.txt

* European Portuguese translation fix: miscstats.txt

* European Portuguese translation fix: pausecfg.txt

* European Portuguese translation fix: restmenu.txt

* European Portuguese translation fix: statscfg.txt
2021-09-17 13:12:46 +02:00
OciXCrom
fb7ab6d08d
Add missing kRenderFx constant (#928)
* Add missing kRenderFx constant

* Change constant name to match SDK
2021-09-17 13:11:17 +02:00
OciXCrom
01e60834fa
Use precache_generic() for sounds that are played client-side (#934) 2021-09-17 13:10:46 +02:00
Franco Romaniello
3289b3c63c
Update parson and fix json_object_set_value (#983)
* Remove parson folder

* add submodule parson

* FIX amxx_json_object_set_value generate a crash if invalid value is passed

* restore parson folder status
2021-09-17 13:06:54 +02:00
FEDERICOMB
e17d37abe3
[FEATURE REQUEST] set_hudmessage add missing parameters (#992)
Same as https://github.com/alliedmodders/amxmodx/pull/981

Co-Authored-By: Franco Romaniello <romax.cs@gmail.com>

Co-authored-by: Franco Romaniello <romax.cs@gmail.com>
2021-09-17 13:05:28 +02:00
Franco Romaniello
51c3f1b195
Fix typo in message_const.inc TE_FIZZ comment (#990) 2021-09-17 13:03:37 +02:00
Harsha Raghu
2c8be75057
[TFCX] Fix Medic infection Crash on Linux (#991)
* [TFCX] Fix Medic infection Crash on Linux

Issue: #988

* [TFCX] Removed redundant code

- Added `_DEBUG_TFCX` preprocessor directive
- Deleted redundant code (which fetches pdata)
2021-09-17 12:59:54 +02:00
pizzahut2
10db2e5c85
Revert "Update CMisc.h (#984)" (#986)
Turned out both test servers still had an old "tfc_i386.so" file which took precedence over the newer "tfc.so" library, so both servers were misconfigured and that's why the offsets didn't work.
2021-09-02 11:51:50 -07:00
pizzahut2
05f86f05c0
Update CMisc.h (#984)
LINUXOFFSET is back at 3 since HLDS Linux build 8308 (dated July 24, 2019).
2021-08-26 22:28:01 -07:00
OciXCrom
36d5aa97b1
Add missing set_task_* callback info (#952) 2021-08-07 17:31:18 +02:00
OciXCrom
b8c490b5e6
Fix newmenus.inc documentation (#942) 2021-08-07 17:30:07 +02:00
OciXCrom
301701b1da
Fix typo in admincmd.txt (#951)
slaped => slapped

Let's just ignore the fact that the key is misspelled too.
2021-08-07 17:29:11 +02:00
Fysiks
5b1b844184
Fix incorrect uses of feof() (#957)
Using feof() as the while loop condition for detecting the end of the file is incorrect.
2021-08-07 17:28:35 +02:00
TibyXD
6c9c37eb45
Fixed Romanian translation, and added diacritics (#974) 2021-08-07 17:20:50 +02:00
Fysiks
d88b7e3c98
Change default chat time to 0.0 (#977) 2021-08-07 17:19:38 +02:00
Sergey Shorokhov
6b9d82fa60
Add TIME_ELEMENT_* Romanian language keys in time.txt (#971) 2021-07-26 10:45:55 +02:00
David Anderson
08494d0d66 macOS build fix. 2021-07-11 22:14:16 -07:00
David Anderson
97b03ea567 Another macOS build fix. 2021-07-11 22:10:02 -07:00
David Anderson
344fb3d410 Fix mac build. 2021-07-11 22:08:37 -07:00
David Anderson
37cbccef6a Quell warning on macOS. 2021-07-11 22:08:36 -07:00
David Anderson
7fb6440ce9 Update minimum macOS to 10.7. 2021-07-11 20:55:09 -07:00
David Anderson
1a1b16614a Switch to libc++ on mac. 2021-07-11 20:51:19 -07:00
David Anderson
af32a9790b Switch to Python3 for bootstrapping. 2021-07-11 17:30:38 -07:00
Sergey Shorokhov
2e5e3ce060
Add month and year support to get_time_length() (#969)
* Add RU

* Add EN

* Add DE

* Add SR

* Add BP

* Add HU

* Add SECONDS_IN_MONTH & timeunit_months

* Add months for API description

* Add SECONDS_IN_YEAR & timeunit_years

* fix typo

* Add FR
2021-07-01 10:51:24 +02:00
FEDERICOMB
c58daeafca
Fix stock "SQL_QueryAndIgnore" documentation (#965) 2021-06-19 10:38:25 +02:00
Fysiks
7fef58c374
Fix for loop index out of bounds error (#966)
Fixes an index out of bounds error when refreshMenus() and subsequently findAdminsWithMenu() is called when there is 32 players in the server. Indexing the playersList array in the for loop condition causes it to try to index with a value of 32 on the very last condition check which is not valid for this array.
2021-06-19 10:36:56 +02:00
Fysiks
3c1856f7af
Add ignore for amxx binaries (#960) 2021-05-06 20:40:48 -07:00
ArKaNeMaN
9fbf91ded0
Fixed a typo in open_dir native (#955)
dir[] parameter is not const, but it never changes.
2021-03-25 10:04:00 -07:00