on right click on sign:
if player is in "kitpvp":
if line 1 is "&1[buyK]":
line 2 is set # 10 (nombre)
line 3 is set #262 (id)
line 4 is set #$10 (prix j'ai fait en sorte d'ignorer l'"$")
set {_cout} to line 4 parsed as an text
set {_id} to line 3 parsed as an integer
set {_nombre} to line 2 parsed as an integer
wait 1 tick
replace all "$" in {_cout} with ""
wait 1 tick
set {_cout} to {_cout} parsed as an integer
wait 1 tick
if {kitpvp.money.%player%} >= {_cout}:
subtract {_cout} from {kitpvp.money.%player%}
give {_nombre} of {_id} to player
send "&aMerci de votre achat"
send "&c-%{_cout}%$"
Dans ce code je ne vois pas où est le problème, pas d'erreur etc c'est jute le "give {_nombre} of {_id} to player"
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
Valas
on right click on sign: if player is in "kitpvp": if line 1 is "&1[buyK]": line 2 is set # 10 (nombre) line 3 is set #262 (id) line 4 is set #$10 (prix j'ai fait en sorte d'ignorer l'"$") set {_cout} to line 4 parsed as an text set {_id} to line 3 parsed as an integer set {_nombre} to line 2 parsed as an integer wait 1 tick replace all "$" in {_cout} with "" wait 1 tick set {_cout} to {_cout} parsed as an integer wait 1 tick if {kitpvp.money.%player%} >= {_cout}: subtract {_cout} from {kitpvp.money.%player%} give {_nombre} of {_id} to player send "&aMerci de votre achat" send "&c-%{_cout}%$"Dans ce code je ne vois pas où est le problème, pas d'erreur etc c'est jute le "give {_nombre} of {_id} to player"
qui pose problème...
14 réponses à cette question
Messages recommandés