Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
etojuice committed Aug 21, 2021
1 parent 9e83cff commit 3bb743d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public CBasePlayer_HasRestrictItem(const pPlayer, const ItemID:iItemId, const It
if(g_flFreeBuyTime > 0.0 && g_flPlayerBuyTime[pPlayer] < get_gametime())
{
client_print(pPlayer, print_center, "FREEBUYTIME_PASSED", g_flFreeBuyTime)
SetHookChainReturn(ATYPE_INTEGER, true)
SetHookChainReturn(ATYPE_BOOL, true)
return HC_SUPERCEDE
}

Expand Down

2 comments on commit 3bb743d

@csoly1257
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No error
But only shows FREEBUYTIME_PASSED
It does not show: %0.f seconds have passed. ^rYou can't buy anything now!

@etojuice
Copy link
Collaborator Author

@etojuice etojuice commented on 3bb743d Aug 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to replace line 272 with this:

client_print(pPlayer, print_center, "%l", "FREEBUYTIME_PASSED", g_flFreeBuyTime)

Please sign in to comment.