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

Topic category: Troubleshooting, bugs, and solutions

Last seen on 01:12, 18. Jan 2024
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 19:35, 22. Mar 2024
Joined Mar 2021
Points:

User statistics:

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

Add client side check before all.

Last seen on 01:12, 18. Jan 2024
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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