Raised This Month: $ Target: $400
 0% 

How to improve this code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-02-2014 , 10:03   Re: How to improve this code?
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
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.
Quote:
Originally Posted by ConnorMcLeod View Post
Tries don't need to be destroyed at plugin_end, it is automatic.
So,who is wrong ? I just want to know the correct way.
HamletEagle 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