Raised This Month: $51 Target: $400
 12% 

Solved Little optimization


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-22-2020 , 10:02   Little optimization
Reply With Quote #1

Is there anyway that i can do this in just one line? I've been trying all different things but i can't seem to get it to work.

PHP Code:
if(get_pcvar_num(pSounds))
{
    
client_cmd(iAttacker"mp3 play %s"szSound);


This is something i'd use, but the last part "DO NOTHING" needs to be changed since it makes no sense
PHP Code:
(get_pcvar_num(pSounds) ? client_cmd(iAttacker"mp3 play %s"szSound) : client_cmd(iAttacker"DO NOTHING")); 
__________________

Last edited by Napoleon_be; 01-22-2020 at 11:41.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



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 11:00.


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