SOLVED Else and else if doesn't work correctly when using in "When this GUI opened" or "When this GUI closed" procedure

Started by Obichni_Chelovek on Sun, 07/04/2021 - 21:07

Topic category: Troubleshooting, bugs, and solutions

Last seen on 16:22, 15. Sep 2021
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
SOLVED Else and else if doesn't work correctly when using in "When this GUI opened" or "When this GUI closed" procedure
Mon, 07/05/2021 - 17:31 (edited)

I made coin bag, when you open it's GUI it should do that:

if random(0,1) < 0,5 play sound1, else if random(0,1) > 0,5 play sound2, else play sound3. 

Procedure

 

 

 

 

 

 

 

 

 

 

But instead of doing that it just plays all of them, why? Am I doing something wrong?

Edited by Obichni_Chelovek on Mon, 07/05/2021 - 17:31
Last seen on 20:22, 31. Jul 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add client side check before…
Mon, 07/05/2021 - 16:25

Add client side check before all.

Last seen on 16:22, 15. Sep 2021
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you very much, idk how…
Mon, 07/05/2021 - 17:29

Thank you very much, idk how but that worked <3