Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script doesn't work
#4
If you using class you have to remember, that any class vars, must be initialized in class constructor, and before initializing they have to be declared.

So for example:
Squirrel Script
  1. class Foo
  2. {
  3. constructor()
  4. {
  5. var1 = "Var 1";
  6. var2 = 921323;
  7. }
  8.  
  9. var1 = null;
  10. var2 = null;
  11. var3 = null; // This one isn't initialized so will be static member of this class
  12. };


Reply


Messages In This Thread
Script doesn't work - by Tuv - 28.12.2015, 11:36
RE: Script doesn't work - by Buras - 28.12.2015, 11:49
RE: Script doesn't work - by Tuv - 28.12.2015, 12:42
RE: Script doesn't work - by Bimbol - 28.12.2015, 13:17
RE: Script doesn't work - by Tuv - 28.12.2015, 17:25
RE: Script doesn't work - by Bimbol - 28.12.2015, 17:34

Possibly Related Threads…
Thread Author Replies Views Last Post
  Script Ayate 3 2,972 27.12.2015, 14:12
Last Post: Buras

Forum Jump:


Users browsing this thread: 1 Guest(s)