[saco] Match GameSetPlayerWeaponSkillLevel(...)

This commit is contained in:
RD42 2024-11-03 17:32:34 +08:00
parent 414629e296
commit 0c52dc8cdd
2 changed files with 3 additions and 3 deletions

View File

@ -158,10 +158,10 @@ CAMERA_AIM * __stdcall GameGetRemotePlayerAim(int iPlayer)
//---------------------------------------------------------- //----------------------------------------------------------
void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, float fLevel) void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, WORD wLevel)
{ {
if(iSkill < 11 && iPlayer < PLAYER_PED_SLOTS) { if(iSkill < 11 && iPlayer < PLAYER_PED_SLOTS) {
fWeaponSkill[iPlayer][iSkill] = fLevel; fWeaponSkill[iPlayer][iSkill] = (float)wLevel;
} }
} }

View File

@ -29,8 +29,8 @@ void __stdcall GameSetRemotePlayerCameraExtZoom(BYTE bytePlayerID);
float __stdcall GameGetLocalPlayerCameraExtZoom(); float __stdcall GameGetLocalPlayerCameraExtZoom();
float __stdcall GameGetLocalPlayerAspectRatio(); float __stdcall GameGetLocalPlayerAspectRatio();
void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, float fLevel);
void __stdcall GameSetLocalPlayerWeaponSkillLevel(int iSkill, float fLevel); void __stdcall GameSetLocalPlayerWeaponSkillLevel(int iSkill, float fLevel);
void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, WORD wLevel);
void __stdcall GameStoreLocalPlayerWeaponSkills(); void __stdcall GameStoreLocalPlayerWeaponSkills();
void __stdcall GameSetLocalPlayerWeaponSkills(); void __stdcall GameSetLocalPlayerWeaponSkills();
void __stdcall GameResetLocalPlayerWeaponSkills(); void __stdcall GameResetLocalPlayerWeaponSkills();