08.05.2020, 06:22
Suggestion:
In MenuStore_AddItem, add an optional data parameter defaulting to 0, in which we can put any value.
For example, in the weapon shop I would put the weapon id in it. In some other kind of shop which reads from a database, I could put the row id from the table in it. Etc...
I think there is no need, since the player textdraws are being destroyed as soon as the menu is closed, as it should be.
In MenuStore_AddItem, add an optional data parameter defaulting to 0, in which we can put any value.
For example, in the weapon shop I would put the weapon id in it. In some other kind of shop which reads from a database, I could put the row id from the table in it. Etc...
Quote:
You should always use global textdraws where possible there is a lot of player textdraws wasted here plus extra overhead to create them needlessly.
|