Base64Encode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (moved Base64Encode to Base64encode: It's not Encode, it's encode.)
m (fix)
Line 7: Line 7:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
string base64Encode(string/int data)
string base64encode ( string data )
</syntaxhighlight>
</syntaxhighlight>


Line 18: Line 18:
==Example==
==Example==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
local k = base64Encode("Hello, world!")
local k = base64encode("Hello, world!")
outputConsole(k)
outputConsole(k)
--Output: SGVsbG8sIHdvcmxkIQ==
--Output: SGVsbG8sIHdvcmxkIQ==

Revision as of 14:37, 14 March 2014