BitNot

From Multi Theft Auto: Wiki
Revision as of 20:06, 4 May 2015 by Mr.unpredictable (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function performs a bitwise NOT on an (unsigned) 32-bit integer. See Bitwise operation for more details.

Syntax

uint bitNot ( uint var )

Required arguments

  • var: The value you want to perform a bitwise NOT on

Returns

Returns the value on which the operation has been performed.

Example

Click to collapse [-]
server

--In this example we make a command which you can do a bitNot operator

function bitnot(thePlayer,cmd,value)

    outputChatBox(bitNot(value),thePlayer)

end

addCommandHandler("bitnot",bitnotFunc)

See Also