• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

I need help with madcommands

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
#1
I have made a food gui but it keeps giving error at line 28 :


1 %player% = %p%
2 if varset(%args%[1]) then %player% = %args%[1]
3 %gui%["type"] = "form"
4 %gui%["title"] = "shop"
5 %gui%["content"] = "food"
6 %warp1%["text"] = "Steak"
7 %warp2%["text"] = "Cooked Chicken"
8 %warp3%["text"] = "Cooked Porkchop"
9 %warp4%["text"] = "Golden Carrot"
10 %warp5%["text"] = "Golden Apple"
11 %warp6%["text"] = "Cooked Mutton"
12 %warp7%["text"] = "Cooked Rabbit"
13 %warp8%["text"] = "Cookie"
14 %buttons%[] = %warp1%
15 %buttons%[] = %warp2%
16 %buttons%[] = %warp3%
17 %buttons%[] = %warp4%
18 %buttons%[] = %warp5%
19 %buttons%[] = %warp6%
20 %buttons%[] = %warp7%
21 %buttons%[] = %warp8%
22 %gui%["buttons"]= %buttons%
23 %response% = dialog(%p%, %gui%)
24 if varset(%response%) = 0 then exit
25
26 let %money% = playerbalance(%p%)
27
28 if %response% = 1 then if %money% > 500 then goto 100
29 message %p% You dont have enough money to buy this item!
30 exit
31
32 if %response% = 2 then if %money% > 500 then goto 150
33 message %p% You dont have enough money to buy this item!
34 exit
35
36
37 if %response% = 4 then if %money% > 2000 then goto 250
38 message %p% You dont have enough money to buy this item.
39 exit
40 if %response% = 6 then if %money% > 800 then goto 300
41 message %p% You dont have enough money to buy this item.
42 exit
43 if %response% = 7 then if %money% > 800 then goto 350
44 message %p% You dont have enough money to buy this item.
45 exit
46 if %response% = 8 then if %money% > 600 then goto 400
47 message %p% You dont have enough money to buy this item.
48 exit
99
100 asop /takemoney %p% 500
101 asop /give %p% steak 8
102
103 message %p% You have successfully bought a item!
104 exit
150





Please help me.