Bonjours
J'ai un petit soucis que je n'arrive pas a resoudre dans mon code, voici mon code:
command /keys <player> <number>:
trigger:
if arg 2 is not set:
give %arg-2% of 399 named "<red>Nether Star" to the player
else:
give 399 named "<red>Nether Star" to the player
et voici les erreurs:
[17:21:41 ERROR]: 0.02 of nether star named "º4Nether Star" is not a number (test².sk, line 11: give %arg-2% of 399 named "<red>Nether Star" to the player')
[17:21:41 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '399' with e.g. 'nether star'. (test².sk, line 13: give 399 named "<red>Nether Star" to the player')
[17:21:41 INFO]: Loaded 2 scripts with a total of 2 triggers and 2 commands in 3.02 seconds
[17:21:41 INFO]: [skript] Encountered 1 error while reloading the config and all scripts!
Merci