You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To split votes in differents files, we need to add in agmodx.sma #include <agmodx/votes> and create a file named votes
Drawbacks
We loss syntax highlighting and obfuscates what functions or variables the votes are using, no way to locate the references without adding support to AMXXPawn by Klippy. In that case, it would be better to add a new plugin named agmodx_votes.sma, it would be more intuitive and easy for other scripters to look at.
We can use pawn #include feature like other plugin developers did. Examples:
https://github.com/SmileYzn/PugMod/blob/master/addons/amxmodx/scripting/PugMenus.sma
https://github.com/leobrines/pug_for_cs
https://github.com/SmileYzn/MatchBot/blob/main/MatchBot/MatchVoteMenu.h
More info at https://forum.open.mp/showthread.php?tid=2192
How to use
To split votes in differents files, we need to add in agmodx.sma
#include <agmodx/votes>
and create a file namedvotes
Drawbacks
We loss syntax highlighting and obfuscates what functions or variables the votes are using, no way to locate the references without adding support to AMXXPawn by Klippy. In that case, it would be better to add a new plugin named agmodx_votes.sma, it would be more intuitive and easy for other scripters to look at.
Bonus: Pseudo-members
The text was updated successfully, but these errors were encountered: