SetGameType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
[[Category:Incomplete]]
[[Category:Need Syntax]]
__NOTOC__  
__NOTOC__  
This function is for blahblah.. not defined yet
This function sets a string containing a name for the game type. This should be the game-mode that is active, for example "Capture The Flag" or "Deathmatch". This is then displayed in the server browser and external server browsers.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
INSERT SYNTAX HERE             
bool setGameType ( string gameType )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''gameType:''' A string containing a name for the game mode
 
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' descriptiona
*'''argumentName3:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
Returns ''true'' if the game type was set, ''false'' if an invalid argument was passed to the function.


==Example==  
==Example==  
This example does...
This example sets the game type to ''Capture The Flag''.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
setGameType ( "Capture The Flag" )
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{FunctionArea_Functions}}
{{All Seeing Eye functions}}

Revision as of 10:54, 12 September 2006

This function sets a string containing a name for the game type. This should be the game-mode that is active, for example "Capture The Flag" or "Deathmatch". This is then displayed in the server browser and external server browsers.

Syntax

bool setGameType ( string gameType )

Required Arguments

  • gameType: A string containing a name for the game mode

Returns

Returns true if the game type was set, false if an invalid argument was passed to the function.

Example

This example sets the game type to Capture The Flag.

setGameType ( "Capture The Flag" )

See Also

Template:All Seeing Eye functions