custom static variables !

   2036   0   1
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
hello.
how i can create static variables in Hscript ?
like C++
static float myVar = 10.0f;

for example i want create a static variables by default value 10,then i want increases this variables in each time and send to TY from my object.

my custom Hscript :
{

static test = 10; //syntax error


test++;

return test;
}
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
  • Quick Links