Raised This Month: $209 Target: $400
 52% 

Speed Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-17-2020 , 09:29   Re: Speed Problem
Reply With Quote #11

Smiley, your signature can be tweaked a little bit

set_pcvar_num( pCvar , !get_pcvar_num(pCvar) );
__________________
Bugsy is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 01-17-2020 , 09:42   Re: Speed Problem
Reply With Quote #12

NOT operator returns a bool no?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-17-2020 , 11:29   Re: Speed Problem
Reply With Quote #13

No, it returns an integer, 0 or 1, which is the same as the definition for false/true, respectively. You will not get warnings by the compiler
__________________

Last edited by Bugsy; 01-17-2020 at 11:31.
Bugsy is offline
NooTy
Junior Member
Join Date: Sep 2019
Old 01-17-2020 , 15:46   Re: Speed Problem
Reply With Quote #14

Thank You I Fixed it , it was very easy xD
NooTy is offline
Old 01-18-2020, 03:00
NooTy
This message has been deleted by NooTy.
Reply


Thread Tools
Display Modes

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 06:03.


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