View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-11-2017 , 05:34   Re: One-Shot Multikill Detection
Reply With Quote #47

Quote:
Originally Posted by Bugsy View Post
Is it that hard to search your code? Replace every instance of it.
Code:
        case LOG:         {             for(new i;i < sizeof replaceIcons;i++)             {                 replace_all(szMsg,charsmax(szMsg),replaceIcons[i],"")             }                         log_amx(szMsg)         }         default:         {             new Players[32],iPlayersNum = 1,PlayerID             get_players(Players,iPlayersNum,"ch")            
            format(szMsg,charsmax(szMsg),"%s %s",Prefix,szMsg)
            get_players(Players,iPlayersNum,"ch")
Here format should be used, not formatex because he is formatting in the same buffer from where he get values.

EFFX, really, test your plugin before releasing.
__________________

Last edited by HamletEagle; 01-11-2017 at 05:38.
HamletEagle is online now