Thread: Goomba Stomp
View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-29-2019 , 12:36   Re: Goomba Stomp
Reply With Quote #5

PHP Code:
if(equal(szKey"goomba_sound_kill"))
                    {
                        if(
szValue[0])
                        {
                            
copy(g_eSettings[goomba_sound_kill], charsmax(g_eSettings[goomba_sound_kill]), szValue)
                            
precache_sound(szValue)
                        }
                    }
                    else if(
equal(szKey"goomba_sound_damage"))
                    {
                        if(
szValue[0])
                        {
                            
copy(g_eSettings[goomba_sound_damage], charsmax(g_eSettings[goomba_sound_damage]), szValue)
                            
precache_sound(szValue)
                        }
                    } 
Why are you checking szValue[0] here? It's already done at line 134:
PHP Code:
if(!szValue[0])
                    {
                        continue
                    } 
Otherwise, looks okay after a quick check. I swear your config files are so obnoxious to review.
__________________

Last edited by HamletEagle; 06-29-2019 at 12:37.
HamletEagle is offline