Raised This Month: $ Target: $400
 0% 

[DELETED]


Post New Thread Reply   
 
Thread Tools Display Modes
Old 08-06-2018, 10:38
Shadowless
This message has been deleted by Shadowless.
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-06-2018 , 11:04   Re: [HELP] ADMIN + VIP Models
Reply With Quote #2

Quote:
Originally Posted by Shadowless View Post
&& = AND
|| = OR
& = ? <-- whats one & means?

once upon a time i was IRC scripter
& = if contains specified bit (its like >=, <, == ...)

PHP Code:
new Variable
can have 32 bits
1 2 4 8 16 32 64...
This is used to reduce memory

Setting bits:
PHP Code:
Variable = (<< 0
PHP Code:
Variable |= (<< 0
(Last one adds bits)
(1 << 0) = 1
(1 << 1) = 2
(1 << 2) = 4 ... up to (1 << 31)

Setting more than 1 bits:
PHP Code:
Variable |= (<< 0)|(<< 1); 
Checking for bits:

PHP Code:
if (Variable & (<< 0)) 
or
PHP Code:
if (Variable 1
...

Unsetting bits:
PHP Code:
Variable &= ~(<< 0
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 08-06-2018 at 11:08.
Ghosted is offline
Reply



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 12:19.


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