Simple code

 

hi i wrote a script as below but it has ('[' - invalid index value ) error 

can someone help me thanks

   int HowManySymbols=SymbolsTotal(true);
   long hh [MathFloor(HowManySymbols/6)];
 
 
Seyedmasoud Hashemi:

hi i wrote a script as below but it has ('[' - invalid index value ) error 

can someone help me thanks

In one line you made quite a number of interesting actions:

  • Array index should be integer
  • you are dividing integer by integer which results in integer
  • then you are converting that integer to double using MathFloor()


 
Drazen Penic:

In one line you made quite a number of interesting actions:

  • Array index should be integer
  • you are dividing integer by integer which results in integer
  • then you are converting that integer to double using MathFloor()


It's a free world. Right?😂

 
Nelson Wanyama:

It's a free world. Right?😂

but in this free world that script has errors.....meaning it don't going to work in this free world....

sure it's a free world, you can drive a car without steering wheel, but how are you going to make a turn to the left or right....

 
Kenneth Parling:

but in this free world that script has errors.....meaning it don't going to work in this free world....

sure it's a free world, you can drive a car without steering wheel, but how are you going to make a turn to the left or right....

Maybe he does not need to turn yet. Give him time😂