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

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 , 08: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 , 08: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 , 10: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 10:31.
Bugsy is offline
NooTy
Member
Join Date: Sep 2019
Old 01-17-2020 , 14: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, 02: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 04:05.


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