Hi everyone,
I am working on a save function for players inventory's but I have ran into a little problem.
I am trying to pass through the player to the function then save the inventory based off their name, no custom names.
But trying to achieve this is a bit difficult..
Here is my current code:
Here is the error message:
If someone can help me that would be great
Thanks in advance.
I am working on a save function for players inventory's but I have ran into a little problem.
I am trying to pass through the player to the function then save the inventory based off their name, no custom names.
But trying to achieve this is a bit difficult..
Here is my current code:
code_language.skript:
command /test:
trigger:
SaveInv(player)
function SaveInv(p: player):
set helmet of {_p} to leather helmet
set {_pText} to "%{_p}%"
set {_count} to 0
loop 36 times:
set {inv.%_p%.%{_count}%.%_p%} to slot {_count} of {_p}'s inventory
add 1 to {_count}
message "%{_pText}%" to {_p}
Here is the error message:
If someone can help me that would be great
Thanks in advance.