In this tutorial, we will develop a library for creating SA:MP menus. We don't bother with the code for actually displaying the result to the end-user, because it is both simple and irrelevant to the main point. We then look at one trick used to make the code vastly simpler to read and write. First, imagine that we have the following top-level "Buy Things" menu displayed to a user:
Buy Things
------------
Weapons