From 0b39d4eb8bed1b0025ae6fd42cb2b26a8ee96a1d Mon Sep 17 00:00:00 2001 From: d3m37r4 Date: Thu, 7 Dec 2023 20:42:08 +0700 Subject: [PATCH] Correction of typos in variable names and types. --- .../addons/amxmodx/scripting/include/regg.inc | 10 +++--- .../addons/amxmodx/scripting/regg/natives.inl | 32 +++++++++---------- .../amxmodx/scripting/regg_store_points.sma | 4 +-- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/cstrike/addons/amxmodx/scripting/include/regg.inc b/cstrike/addons/amxmodx/scripting/include/regg.inc index e912d7a..c553c64 100644 --- a/cstrike/addons/amxmodx/scripting/include/regg.inc +++ b/cstrike/addons/amxmodx/scripting/include/regg.inc @@ -21,7 +21,7 @@ #define REGG_MAJOR_VERSION 0 #define REGG_MINOR_VERSION 4 -#define REGG_MAINTENANCE_VERSION 35 +#define REGG_MAINTENANCE_VERSION 36 #define REGG_VERSION str_to_num(fmt("%d%d%d", REGG_MAJOR_VERSION, REGG_MINOR_VERSION, REGG_MAINTENANCE_VERSION)) #define REGG_VERSION_STR fmt("%d.%d.%d-alpha", REGG_MAJOR_VERSION, REGG_MINOR_VERSION, REGG_MAINTENANCE_VERSION) @@ -51,10 +51,10 @@ enum ReGG_Result { ReGG_ResultFinish, }; -enum ReGG_ChangetType { - ReGG_ChangetTypeSet, - ReGG_ChangetTypeAdd, - ReGG_ChangetTypeSub, +enum ReGG_ChangeType { + ReGG_ChangeTypeSet, + ReGG_ChangeTypeAdd, + ReGG_ChangeTypeSub, }; forward ReGG_StartPre(const ReGG_Mode:mode); diff --git a/cstrike/addons/amxmodx/scripting/regg/natives.inl b/cstrike/addons/amxmodx/scripting/regg/natives.inl index fd10aaa..b8754f6 100644 --- a/cstrike/addons/amxmodx/scripting/regg/natives.inl +++ b/cstrike/addons/amxmodx/scripting/regg/natives.inl @@ -110,9 +110,9 @@ public bool:NativeSetPoints(const plugin, const argc) { new player = get_param(arg_player); CHECK_NATIVE_PLAYER(player, false) - new ReGG_ChangetType:type = ReGG_ChangetTypeSet; + new ReGG_ChangeType:type = ReGG_ChangeTypeSet; if (argc >= arg_type) { - type = ReGG_ChangetType:get_param(arg_type); + type = ReGG_ChangeType:get_param(arg_type); } new bool:forwards = false; @@ -121,11 +121,11 @@ public bool:NativeSetPoints(const plugin, const argc) { } switch (type) { - case ReGG_ChangetTypeAdd: { + case ReGG_ChangeTypeAdd: { return bool:(addPoints(player, get_param(arg_value), forwards) != ReGG_ResultNone); } - case ReGG_ChangetTypeSub: { + case ReGG_ChangeTypeSub: { return bool:(subPoints(player, get_param(arg_value), forwards) != ReGG_ResultNone); } } @@ -161,9 +161,9 @@ public bool:NativeSetTeamPoints(const plugin, const argc) { new slot = get_param(arg_slot); CHECK_NATIVE_SLOT(slot, false) - new ReGG_ChangetType:type = ReGG_ChangetTypeSet; + new ReGG_ChangeType:type = ReGG_ChangeTypeSet; if (argc >= arg_type) { - type = ReGG_ChangetType:get_param(arg_type); + type = ReGG_ChangeType:get_param(arg_type); } new bool:forwards = false; @@ -172,11 +172,11 @@ public bool:NativeSetTeamPoints(const plugin, const argc) { } switch (type) { - case ReGG_ChangetTypeAdd: { + case ReGG_ChangeTypeAdd: { return bool:(addTeamPoints(slot, get_param(arg_value), forwards) != ReGG_ResultNone); } - case ReGG_ChangetTypeSub: { + case ReGG_ChangeTypeSub: { return bool:(subTeamPoints(slot, get_param(arg_value), forwards) != ReGG_ResultNone); } } @@ -211,9 +211,9 @@ public bool:NativeSetLevel(const plugin, const argc) { new player = get_param(arg_player); CHECK_NATIVE_PLAYER(player, false) - new ReGG_ChangetType:type = ReGG_ChangetTypeSet; + new ReGG_ChangeType:type = ReGG_ChangeTypeSet; if (argc >= arg_type) { - type = ReGG_ChangetType:get_param(arg_type); + type = ReGG_ChangeType:get_param(arg_type); } new bool:forwards = false; @@ -222,11 +222,11 @@ public bool:NativeSetLevel(const plugin, const argc) { } switch (type) { - case ReGG_ChangetTypeAdd: { + case ReGG_ChangeTypeAdd: { return bool:(addLevel(player, get_param(arg_value), forwards) != ReGG_ResultNone); } - case ReGG_ChangetTypeSub: { + case ReGG_ChangeTypeSub: { return bool:(subLevel(player, get_param(arg_value), forwards) != ReGG_ResultNone); } } @@ -262,9 +262,9 @@ public bool:NativeSetTeamLevel(const plugin, const argc) { new slot = get_param(arg_slot); CHECK_NATIVE_SLOT(slot, false) - new ReGG_ChangetType:type = ReGG_ChangetTypeSet; + new ReGG_ChangeType:type = ReGG_ChangeTypeSet; if (argc >= arg_type) { - type = ReGG_ChangetType:get_param(arg_type); + type = ReGG_ChangeType:get_param(arg_type); } new bool:forwards = false; @@ -272,11 +272,11 @@ public bool:NativeSetTeamLevel(const plugin, const argc) { forwards = bool:get_param(arg_forwards); } switch (type) { - case ReGG_ChangetTypeAdd: { + case ReGG_ChangeTypeAdd: { return bool:(addTeamLevel(slot, get_param(arg_value), forwards) != ReGG_ResultNone); } - case ReGG_ChangetTypeSub: { + case ReGG_ChangeTypeSub: { return bool:(subTeamLevel(slot, get_param(arg_value), forwards) != ReGG_ResultNone); } } diff --git a/cstrike/addons/amxmodx/scripting/regg_store_points.sma b/cstrike/addons/amxmodx/scripting/regg_store_points.sma index 4500cd9..9f47630 100644 --- a/cstrike/addons/amxmodx/scripting/regg_store_points.sma +++ b/cstrike/addons/amxmodx/scripting/regg_store_points.sma @@ -50,8 +50,8 @@ public ReGG_PlayerJoinPre(const id) { if(mode == ReGG_ModeSingle || mode == ReGG_ModeFFA) { TrieGetArray(Store, auth, store, sizeof store); - ReGG_SetPoints(id, store[StorePoints], ReGG_ChangetTypeSet); - ReGG_SetLevel(id, store[StoreLevel], ReGG_ChangetTypeSet); + ReGG_SetPoints(id, store[StorePoints], ReGG_ChangeTypeSet); + ReGG_SetLevel(id, store[StoreLevel], ReGG_ChangeTypeSet); } return PLUGIN_HANDLED; }