From cf6eec3a3f0bf8822ef28e8dd6c79b4178be0d15 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:34:44 +0800 Subject: [PATCH] [saco] Update `CPlayerPed::SetWeaponSkillLevel(...)` --- saco/game/playerped.cpp | 6 +++--- saco/game/playerped.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 1b296ef..948f883 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -1431,12 +1431,12 @@ void CPlayerPed::SetShopName(char *szNewShopName) //----------------------------------------------------------- -void CPlayerPed::SetWeaponSkillLevel(int iSkill, float fLevel) +void CPlayerPed::SetWeaponSkillLevel(int iSkill, WORD wLevel) { if(m_bytePlayerNumber == 0) - GameSetLocalPlayerWeaponSkillLevel(iSkill, fLevel); + GameSetLocalPlayerWeaponSkillLevel(iSkill, wLevel); else - GameSetPlayerWeaponSkillLevel(m_bytePlayerNumber, iSkill, fLevel); + GameSetPlayerWeaponSkillLevel(m_bytePlayerNumber, iSkill, wLevel); } //----------------------------------------------------------- diff --git a/saco/game/playerped.h b/saco/game/playerped.h index f3d0907..003e817 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -133,7 +133,7 @@ public: PCHAR GetShopName(); void SetShopName(char *szNewShopName); - void SetWeaponSkillLevel(int iSkill, float fLevel); + void SetWeaponSkillLevel(int iSkill, WORD wLevel); VECTOR* GetBonePosition(int iBone, VECTOR *vecPos); VECTOR* GetTransformedBonePosition(int iBone, VECTOR *vecOffset);