[saco] Update CPlayerPed::SetWeaponSkillLevel(...)

This commit is contained in:
RD42 2024-11-03 17:34:44 +08:00
parent 218e6b1d53
commit cf6eec3a3f
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
//-----------------------------------------------------------

View File

@ -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);