Hello there so i am trying to create a loop that create gui slots with different functions.
But it cannot put the right information into the function part.
it always take the latests loop and forwards that to the function.
[doublepost=1660752828,1660746749][/doublepost]
More specefic example
[doublepost=1660755485][/doublepost]
I know i shouldn't use TuSke or SkQuery for gui's but i use 1.8.8
But it cannot put the right information into the function part.
Code:
format slot {_i} of player with skull of {_name} named "&r" with lore "%{_name}%&7&m-" to close then run [kauctiontest(player, {_name%{_nummer}%}, {_nummer})]
it always take the latests loop and forwards that to the function.
[doublepost=1660752828,1660746749][/doublepost]
Hello there so i am trying to create a loop that create gui slots with different functions.
But it cannot put the right information into the function part.
Code:format slot {_i} of player with skull of {_name} named "&r" with lore "%{_name}%&7&m-" to close then run [kauctiontest(player, {_name%{_nummer}%}, {_nummer})]
it always take the latests loop and forwards that to the function.
More specefic example
Code:
command /temp4:
trigger:
open chest with 6 rows named "%{_n}% %{_jailstedkauction}%" to player
set {_nummer} to 0
loop 10 times:
add 1 to {_nummer}
format slot {_nummer} of player with stone named "{_nummer}" with lore "%{_nummer}%" to close then run [testing(player, {_nummer})]
function testing(player: player, int: integer):
message "{_int} %{_int}%" to {_player}
Hello there so i am trying to create a loop that create gui slots with different functions.
But it cannot put the right information into the function part.
Code:format slot {_i} of player with skull of {_name} named "&r" with lore "%{_name}%&7&m-" to close then run [kauctiontest(player, {_name%{_nummer}%}, {_nummer})]
it always take the latests loop and forwards that to the function.
[doublepost=1660752828,1660746749][/doublepost]
More specefic example
Code:command /temp4: trigger: open chest with 6 rows named "%{_n}% %{_jailstedkauction}%" to player set {_nummer} to 0 loop 10 times: add 1 to {_nummer} format slot {_nummer} of player with stone named "{_nummer}" with lore "%{_nummer}%" to close then run [testing(player, {_nummer})] function testing(player: player, int: integer): message "{_int} %{_int}%" to {_player}
I know i shouldn't use TuSke or SkQuery for gui's but i use 1.8.8