Help:VE220

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(Created page with "This could mean the declared functions return type is different from the actual function. void GetSpeed(bool dir); int GetSpeed(bool dir) { } The declared function is ...")
 
Line 9: Line 9:
  
 
The declared function is void, but the actual function is int;
 
The declared function is void, but the actual function is int;
 +
 +
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);'''

Revision as of 15:50, 8 May 2023

This could mean the declared functions return type is different from the actual function.

void GetSpeed(bool dir);

int GetSpeed(bool dir) {

}

The declared function is void, but the actual function is int;

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);
Personal tools