Help:VE220

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
This could mean the declared functions return type is different from the actual function.
+
'''Generic script compilation error'''
  
void GetSpeed(bool dir);
+
Error code 220 is used for a wide variety of script errors. Generally, the error will include a short description of the fault and the file line number where the fault lies.
  
int GetSpeed(bool dir)
+
More information about Trainz script can be found [[Getting_Started_in_TrainzScript|here]].
{
+
   
+
}
+
  
The declared function is void, but the actual function is int;
+
[[Category:Validation Errors]]
 
+
It could also mean you have the same function declared twice with different parameters:
+
 
+
 
+
  int DetermineCarPosition(void);
+
  void SetTwoDigitCode(string code);
+
  '''void SetDestination(string code);'''
+
  void SetTexture(int index);
+
  void SetAttachment(int side, int middle, int high, int highbeam);
+
  '''void SetDestination(int index, int code);'''
+

Latest revision as of 10:51, 17 May 2024

Generic script compilation error

Error code 220 is used for a wide variety of script errors. Generally, the error will include a short description of the fault and the file line number where the fault lies.

More information about Trainz script can be found here.

Personal tools