#<none> output
1 messages · Page 1 of 1 (latest)
but honestly, you already set the castka variable before, I dont see why you need to do it again
because its local?
on chat:
if {OwnOnGoing::%player's uuid%} is true:
cancel event
set {_cislo} to message parsed as number
if message parsed as number is set:
send "abc" to player
set {castka::%player's uuid%} to {_cislo}
vytvorit(player, {castka::%player's uuid%})
set {OwnOnGoing::%player's uuid%} to false
function vytvorit(p: player, times: number = 0):
create a gui with id "hra" with virtual chest inventory with 2 rows named "CoinFlip | Vytvorit hru":
set {castka::%{_p}'s uuid%} to {times}
make gui slot 1 with gold ingot named "&ePridat castku (+100)":
add 100 to {castka::%{_p}'s uuid%}
make gui slot 4 with purple dye with lore "%{castka::%{_p}'s uuid%}%" named "&aCastka:"
make gui slot 2 with gold block named "&ePridat castku (+1000)":
add 1000 to {castka::%{_p}'s uuid%}
make gui slot 4 with purple dye with lore "%{castka::%{_p}'s uuid%}%" named "&aCastka:"
make gui slot 10 with redstone named "&4Oddelat castku (-100)":
if {castka::%{_p}'s uuid%} >= 100:
remove 100 from {castka::%{_p}'s uuid%}
make gui slot 4 with purple dye with lore "%{castka::%{_p}'s uuid%}%" named "&aCastka:"
else:
send "Nemuzes jit do minusu!" to {_p}
make gui slot 11 with redstone block named "&4Oddelat castku (-1000)":
if {castka::%{_p}'s uuid%} >= 1000:
remove 1000 from {castka::%{_p}'s uuid%}
make gui slot 4 with purple dye with lore "%{castka::%{_p}'s uuid%}%" named "&aCastka:"
else:
send "Nemuzes jit do minusu!" to {_p}
make gui slot 13 with oak sign named "Pridat vlastni castka":
send "Napis do chatu vlastni castku" to {_p}
set {OwnOnGoing::%{_p}'s uuid%} to true
close {_p}'s inventory
make gui slot 6 with green dye named "&aPotvrdit":
set {castka::%{_p}'s uuid%} to 0
make gui slot 7 with green dye named "&aPotvrdit":
set {castka::%{_p}'s uuid%} to 0
make gui slot 15 with red dye named "&4Zrusit":
open gui with id "Abc" to {_p}
make gui slot 16 with red dye named "&4Zrusit":
open gui with id "Abc" to {_p}
make gui slot 4 with purple dye with lore "%{castka::%{_p}'s uuid%}%" named "&aCastka:"
open gui with id "hra" to {_p}```When I use the oak sign ("Pridat vlastni castka") it closes ✅ it types in the chat ✅ it sends a check "abc" that it parsed as number ✅ opens back the gui ✅ the chatted number is there ❌ insted there is <none>
(accidentally deleted)