parameter_count()

From ENIGMA

Revision as of 19:30, 22 April 2014 by RobertBColton (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Gets the number of command line parameters that were passed to the game and returns the result.

Parameters

Parameter Description
none this function has no parameters

Return Values

integer: Returns the number of command line parameters.

Example Call

// demonstrates iterating the command line parameters and showing them to the user
for (i = 0; i < parameter_count(); i++) {
  show_message(parameter_string(i));
}
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox