SetRuleValue: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Incomplete]]
__NOTOC__
[[Category:Need Syntax]]
{{Server function}}
 
This function sets a rule value that can be viewed by server browsers.
__NOTOC__
This function is for blahblah.. not defined yet


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
INSERT SYNTAX HERE              
bool setRuleValue ( string key, string value )              
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''key:''' The name of the rule
 
*'''value:''' The value you wish to set for the rule
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' descriptiona
*'''argumentName3:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
Returns ''true'' if the rule value was set, ''false'' if invalid arguments were specified.


==Example==  
==Example==  
This example does...
This example shows how you could set a rule that shows that your script is running on the server.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
setRuleValue ( "myScriptRunning", "yes" )
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{FunctionArea_Functions}}
{{Announce functions}}

Latest revision as of 16:19, 30 January 2009

This function sets a rule value that can be viewed by server browsers.

Syntax

bool setRuleValue ( string key, string value )              

Required Arguments

  • key: The name of the rule
  • value: The value you wish to set for the rule

Returns

Returns true if the rule value was set, false if invalid arguments were specified.

Example

This example shows how you could set a rule that shows that your script is running on the server.

setRuleValue ( "myScriptRunning", "yes" )

See Also