hi guys so i have the code:
and i want to find an unset variable and set them but not set all 10 variables just a one example i have set {test::myusername::1} so i want to function to set next variable be set it would like to be {test::myusername::2}
function test(p: player):
loop 10 times:
if {test::%{_p}%::%loop-value%} is not set:
set {test::%{_p}%::%loop-value%} to "[test]"
thank you
and i want to find an unset variable and set them but not set all 10 variables just a one example i have set {test::myusername::1} so i want to function to set next variable be set it would like to be {test::myusername::2}
function test(p: player):
loop 10 times:
if {test::%{_p}%::%loop-value%} is not set:
set {test::%{_p}%::%loop-value%} to "[test]"
thank you