Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4D maze
#2
Hi MasterGy,

Since QB64.exe v 2.0+ you have to be careful using the Function name as a variable in the calculations for the Function.

I rewrote this function to obey this new rule for Functions:
Code: (Select All)
Function kivul
    rtn = 0: For t = 0 To 3: rtn = rtn Or (ana(t) < 0 Or ana(t) > maze_s(t) - 1) Or (ana(t) < 0 Or ana(t) > maze_s(t) - 1): Next t
    kivul = rtn
End Function

And now the program does not bug out on me while loading screen up!!!

I simply replaced all kivul's with rtn in the Function definition. That is basic fix to most problems of incompatible programs that worked before v 2.0 but now don't.

Pretty cool stuff there MasterGy! way the heck over my head ;-))
   
b = b + ...
Reply


Messages In This Thread
4D maze - by MasterGy - 07-19-2022, 07:19 PM
RE: 4D maze - by bplus - 07-19-2022, 08:56 PM
RE: 4D maze - by MasterGy - 07-19-2022, 09:18 PM
RE: 4D maze - by Coolman - 07-22-2022, 08:29 AM
RE: 4D maze - by MasterGy - 07-22-2022, 08:50 AM
RE: 4D maze - by Coolman - 07-22-2022, 09:20 AM



Users browsing this thread: 1 Guest(s)