Skip to content

Commit 11fd669

Browse files
committed
shop: fix return value
1 parent 1a75fc1 commit 11fd669

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

deathrun_shop.sma

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#endif
77

88
#define PLUGIN "Deathrun: Shop"
9-
#define VERSION "0.1.1"
9+
#define VERSION "0.1.2"
1010
#define AUTHOR "Mistrick"
1111

1212
#pragma semicolon 1
@@ -163,7 +163,8 @@ public ShopMenu_Handler(id, menu, item)
163163
{
164164
if(item == MENU_EXIT)
165165
{
166-
menu_destroy(menu); return;
166+
menu_destroy(menu);
167+
return PLUGIN_HANDLED;
167168
}
168169

169170
new iAccess, szInfo[2], hCallback;
@@ -178,7 +179,7 @@ public ShopMenu_Handler(id, menu, item)
178179
if((~eItemInfo[ItemTeam] & team) || GetCanBuyAnswer(id, eItemInfo[ItemCanBuy]) != ITEM_ENABLED)
179180
{
180181
client_print_color(id, print_team_default, "%s^1 %L", PREFIX, id, "DRS_CANT_BUY");
181-
return;
182+
return PLUGIN_HANDLED;
182183
}
183184

184185
new money = cs_get_user_money(id) - eItemInfo[ItemCost];
@@ -198,6 +199,7 @@ public ShopMenu_Handler(id, menu, item)
198199
}
199200

200201
Show_ShopMenu(id, item / 7);
202+
return PLUGIN_HANDLED;
201203
}
202204
GetCanBuyAnswer(id, callback)
203205
{

0 commit comments

Comments
 (0)