The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.15 (Linux)
File Line Function
/showthread.php 906 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why not possible to create point variable in class?
#1
Today just faced strange bug, because of which you cant create variable with Colobot's type point with parameters, "Type declaration missing" it said me, so i suppose its just dont know whether i creating variable or function which must return some point variable. Example:

 point ma_point(322, 228, 6);


Create empty point and then assign it manually also not possible.

P.S. don't advice me please create all point variables in constructor, there is already alot of stuff which every bot needed, not wise would be create points every time new bot comes in to the class.


Messages In This Thread
Why not possible to create point variable in class? - by Engelard - 06-10-2018, 03:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)