I have skript:
doesnt work first loop in cmd /pokaz but second works... How to repair it?
[doublepost=1622150033,1621966431][/doublepost]f5 brothers
Code:
function graczeObok(p: player) :: boolean:
loop all players in radius 50 around {_p}:
set {vdate::%{_p}%::%loop-player%} to round(distance between loop-player and {_p})
delete {vdate::%{_p}%::%{_p}%}
return true
every 5 seconds:
delete {vdate::*}
loop all players in "world":
graczeObok(loop-player)
command /pokaz:
trigger:
#doesnt work
loop {vdate::*}:
send "P:%loop-index%" to player
send "W:%loop-value%" to player
#works
loop {vdate::%player%::*}:
send "P2:%loop-index%" to player
send "W2:%loop-value%" to player
doesnt work first loop in cmd /pokaz but second works... How to repair it?
[doublepost=1622150033,1621966431][/doublepost]f5 brothers