Help:VE273

From TrainzOnline
Revision as of 11:46, 17 May 2024 by Pw3r (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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