View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-20-2020 , 13:24   Re: Drums Plugin
Reply With Quote #2

Poorly coded, could be optimized a lot. Save your paths in a 2D array. use the menu_additem() info parameter to pass info into it, this way the switch() could be removed and a lot of code will become unnessecary. Also please don't hardcode array lengths, use charsmax() instead. U could use menu_display() just once, just check if item != MENU_EXIT.

Remove the .amxx file from your post, it's not allowed to post .amxx files.
__________________

Last edited by Napoleon_be; 04-20-2020 at 13:40.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be