SetOutputString()

From ElectronicWar

Jump to: navigation, search
Function information for setOutputString()
Function setOutputString()
Parameters (string)
API Challenge
Cost $0
Level N/A
CPU Usage 0
Description Passes the parameter (a string or string variable) to the challenge system. This is one of the functions used to end challenges (along with setOutputFloat() and setOutputInt()) and as such will only appear at the end of a challenge program.


[edit] Example 1

If the challenge were to output the string "Hello World", the script would be:

setOutputString("Hello World");

[edit] Example 2

If the challenge were to output a string variable, containing the string "Hello World", the script would be:

string str = "Hello World";
setOutputString(str);
Personal tools