Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4D maze
#3
(07-19-2022, 08:56 PM)bplus Wrote: 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 ;-))
You are great Bplus! Smile You are great for finding the error so quickly and thank you for taking care of it! the 2.0.2. I tried with version and it indicated errors of this kind at the bottom. After I rewrote the names in the functions, it no longer indicated an error. So he wrote "ok" and still this error remained. I tried it, it works fine. Thank you very much once again!
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: 2 Guest(s)