From 680adea7b39dee6a49ca0be5e4b02c174502dbac Mon Sep 17 00:00:00 2001 From: Nexius Date: Sat, 7 Jun 2025 14:48:12 +0300 Subject: [PATCH 1/4] Tweak GetSVarNameAtIndex, GetPVarNameAtIndex set its return value to integer values --- omp_variable.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omp_variable.inc b/omp_variable.inc index 61ba989..66d5573 100644 --- a/omp_variable.inc +++ b/omp_variable.inc @@ -233,7 +233,7 @@ native GetSVarsUpperIndex(); * * */ -native bool:GetSVarNameAtIndex(index, output[], size = sizeof (output)); +native GetSVarNameAtIndex(index, output[], size = sizeof (output)); /** * omp_variable @@ -418,7 +418,7 @@ native GetPVarsUpperIndex(playerid); * * */ -native bool:GetPVarNameAtIndex(playerid, index, output[], size = sizeof (output)); +native GetPVarNameAtIndex(playerid, index, output[], size = sizeof (output)); /** * omp_variable From 13ea083e696550494391cff2550527f965031fd4 Mon Sep 17 00:00:00 2001 From: Nexius Date: Sat, 31 May 2025 21:58:43 +0300 Subject: [PATCH 2/4] Tweaks for OPEN_MP_TAGS --- _open_mp.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_open_mp.inc b/_open_mp.inc index d79ff46..f875fff 100644 --- a/_open_mp.inc +++ b/_open_mp.inc @@ -139,7 +139,7 @@ public const __OPEN_MP_VERSION = 0; #if __pawn_build >= 11 #define OPEN_MP_TAGS {LANDING_GEAR_STATE, T_CONNECTION_STATUS, T_CP_TYPE, T_WEAPON, T_PLAYER_MARKERS_MODE, T_DIALOG_STYLE, T_HTTP_METHOD, T_HTTP_ERROR, T_DOWNLOAD_REQUEST, T_SELECT_OBJECT, T_OBJECT_MATERIAL_SIZE, T_OBJECT_MATERIAL_TEXT_ALIGN, T_EDIT_RESPONSE, T_PLAYER_STATE, T_SPECIAL_ACTION, T_FIGHT_STYLE, T_WEAPONSKILL, T_WEAPONSTATE, T_KEY, T_CAM_MODE, T_MAPICON, T_SPECTATE_MODE, T_PLAYER_RECORDING_TYPE, T_FORCE_SYNC, T_CLICK_SOURCE, T_BULLET_HIT_TYPE, T_TEXT_DRAW_FONT, T_TEXT_DRAW_ALIGN, T_VARTYPE, T_CARMODTYPE, T_VEHICLE_MODEL_INFO, T_VEHICLE_PANEL_STATUS, T_VEHICLE_DOOR_STATUS, T_VEHICLE_LIGHT_STATUS, T_VEHICLE_TYRE_STATUS, T_WEAPON_SLOT, Bit, Bitmap, XML, XMLEntry, Group, INI, Language, Style, DB, DBResult, Menu, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _} #else - #define OPEN_MP_TAGS {T_WEAPON, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _} + #define OPEN_MP_TAGS {Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _} #endif #else // if defined WEAK_TAGS #define __TAG(%0) t_%0 @@ -153,7 +153,7 @@ public const __OPEN_MP_VERSION = 0; // but not for YSI internal tags. Not having them here would be a change // for many existing scripts that didn't previously have to specify those // tags. Having more here isn't a problem, so they're just all here. - #define OPEN_MP_TAGS {LANDING_GEAR_STATE, Bit, Bitmap, XML, XMLEntry, Group, INI, Language, Style, DB, DBResult, Menu, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _} + #define OPEN_MP_TAGS {Bit, Bitmap, XML, XMLEntry, Group, INI, Language, Style, DB, DBResult, Menu, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _} #else // I say it isn't a problem - the old compiler is limited to only 16 tags, // thus `CUSTOM_TAG_TYPES` is limited to eight tags. To keep the numbers From e6fb003f921d099fff0e22c66e3af2d0331b9d43 Mon Sep 17 00:00:00 2001 From: Nexius Date: Sat, 7 Jun 2025 14:48:39 +0300 Subject: [PATCH 3/4] Tweak GetWeaponName return value --- omp_core.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omp_core.inc b/omp_core.inc index 0e3464b..68aa514 100644 --- a/omp_core.inc +++ b/omp_core.inc @@ -697,7 +697,7 @@ native bool:SendDeathMessage(killer, killee, weapon); * 0: The function failed to execute. The weapon specified does not exist. * */ -native bool:GetWeaponName(WEAPON:weaponid, weapon[], len = sizeof (weapon)); +native GetWeaponName(WEAPON:weaponid, weapon[], len = sizeof (weapon)); /** * omp_core From dd9e15c6a9f8e924f916cace1a79620868f83089 Mon Sep 17 00:00:00 2001 From: Nexius Date: Sat, 7 Jun 2025 16:55:59 +0300 Subject: [PATCH 4/4] Add GetActiveTimers native alias --- omp_core.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/omp_core.inc b/omp_core.inc index 68aa514..f6822de 100644 --- a/omp_core.inc +++ b/omp_core.inc @@ -1411,6 +1411,12 @@ native SHA256_Hash(const content[], const salt[], output[], size = sizeof (outpu #pragma deprecated Use `CountRunningTimers`. native GetRunningTimers() = CountRunningTimers; +/** + * omp_core + */ +#pragma deprecated Use `CountRunningTimers`. +native GetActiveTimers() = CountRunningTimers; + /* ,ad8888ba, 88 88 88 88