From 6a539e973621946040783358c418254d30b72a37 Mon Sep 17 00:00:00 2001 From: Ozmar Escobar <25725331+ZantetsukenGT@users.noreply.github.com> Date: Thu, 7 Apr 2022 20:54:03 -0600 Subject: [PATCH] Fix compiling errors --- modules/standard-callbacks/OnPlayerUpdate.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/standard-callbacks/OnPlayerUpdate.inc b/modules/standard-callbacks/OnPlayerUpdate.inc index 2eb43ef..cd274dc 100644 --- a/modules/standard-callbacks/OnPlayerUpdate.inc +++ b/modules/standard-callbacks/OnPlayerUpdate.inc @@ -17,12 +17,18 @@ public OnPlayerUpdate(playerid) return 0; } + new animLib[32], animName[32]; + new pAnimIndex = GetPlayerAnimationIndex(playerid); + if (pAnimIndex) + GetAnimationName(pAnimIndex, animLib, sizeof animLib, animName, sizeof animName); + new pAnimNameHash = YHash(animName); + //new pAnimLibHash = YHash(animLib); //remove parachute functions if (GetPlayerWeapon(playerid) == WEAPON_PARACHUTE) { new Weapons[10][2]; for (new i = 0; i < 10; i++) { GetPlayerWeaponData(playerid, i, Weapons[i][0], Weapons[i][1]); } - switch (YHash(Player[playerid][pAnimName])) + switch (pAnimNameHash) { case _H: {