Raised This Month: $ Target: $400
 0% 

How to improve this code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-02-2014 , 08:59   Re: How to improve this code?
Reply With Quote #2

If you want to call the same code again, you just need to create a private function with the shared code, and calling it in both forward.

And by the way:

Trim() should be called before the check.
TrieGetCell() -> TrieKeyExists ; since you don't need associated value.
Call TrieDestroy() on plugin_end() forward.
set_fail_state() can format string, but not sure in what AMXX version it's available.
__________________
Arkshine is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode