View Single Post
headline
SourceMod Moderator
Join Date: Mar 2015
Old 12-24-2016 , 17:08   Re: New API and Syntax
Reply With Quote #824

Quote:
Originally Posted by nergal View Post
Not sure if this is an issue with menus but I made a forward with only one parameter which is a pass-by-reference Menu handle.

I made the forward just like every other forward but for some reason, it's not firing nor modifying the Menu handle.

Here's the typeset for it => "function void (Menu& menu);"

EDIT: I even retested the forward by passing the Menu handle by copy instead of reference but still no firing.

I tested this by having the menu add an additional item then printing a message to all available clients by console.
Handles are already pass-by-reference, though. You shouldn't need the &, right?
headline is offline