myParameter()

Queries the value of a dollar parameter.

Synopsis

string myParameter(int num);

Parameters

Parameter Description
num

The dollar parameter whose value is queried as an int, e.g. 3 = $3.

Return value

The value of the dollar parameter.

The first code passes dollar parameters to the second panel. The second code queries the value of the first dollar parameter 1.

Note: Note that you specify the number of the dollar parameter and an int value - see example below.
main(mapping event)
{
  string strvar = "Example";
  dyn_float dreturnf;
  dyn_string dreturns;
  ChildPanelOnCentralModalReturn("DollarPanel.pnl","DollarPanel", makeDynString("$1:First", "$2:"+strvar),dreturnf, dreturns);
}
main(mapping event)
{
    string param = myParameter(1);
    DebugN("myParam:", param);
}

Assignment

Miscellaneous functions

Availability

UI