Skip to content

Commit

Permalink
Fix compiling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ZantetsukenGT committed Apr 8, 2022
1 parent f2e50a5 commit 6a539e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/standard-callbacks/OnPlayerUpdate.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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<RUN_PLAYER>:
{
Expand Down

0 comments on commit 6a539e9

Please sign in to comment.