Help:VE273

From TrainzOnline
Jump to: navigation, search

Variable '<variable name>' already declared in this scope.

This error is reported by the TrainzScript compiler when a variable name is already in use in the current scope.

Example
In this example, the variable 'duplicateTest' is declared twice in the top-level function scope. The second declaration is illegal and will generate an error.

void TestFunction(void)
{
  int duplicateTest = 0;
  int duplicateTest = 0;
}

See also: Error 274

Personal tools