Hey y'all,
I am making a system what removes items from inventory and adds items to inventory.
Adding is working but removing not. The error code is below.
Can someone help me with this please?
I use Skript and SkQuery.
Information below
Skript Version: Skript 2.2-dev36
Minecraft Version: 1.12.2
---
FIXED CODE
Normal Code
Error Code
[NOTE]
In this case is line 187: line 6 and line 193: line 12
[doublepost=1564053870,1564049973][/doublepost][EDIT]
Arg-3 is a amount of cash.
I want that amount in iron ingots removed from a inventory.
I am making a system what removes items from inventory and adds items to inventory.
Adding is working but removing not. The error code is below.
Can someone help me with this please?
I use Skript and SkQuery.
Information below
Skript Version: Skript 2.2-dev36
Minecraft Version: 1.12.2
---
FIXED CODE
Code:
else if arg-1 is "take": #TAKE
if arg-2 is not set:
if arg-3 is not set:
message "&e&lMONEY&r &e- &cYou had not set the cash argument!"
else:
remove arg-3 of iron ingot from player's inventory
message "&e&lMONEY&r &e- &c%arg-3%&e cash was taken from you!"
else:
if arg-3 is not set:
message "&e&lMONEY&r &e- &cYou had not set the cash argument!"
else:
remove arg-3 of iron ingot from player's inventory
message "&e&lMONEY&r &e- &c%arg-3%&e cash was taken from you!"
Normal Code
Code:
else if arg-1 is "take": #TAKE
if arg-2 is not set:
if arg-3 is not set:
message "&e&lMONEY&r &e- &cYou had not set the cash argument!"
else:
remove arg-3 iron ingot from player's inventory
message "&e&lMONEY&r &e- &c%arg-3%&e cash was taken from you!"
else:
if arg-3 is not set:
message "&e&lMONEY&r &e- &cYou had not set the cash argument!"
else:
remove arg-3 iron ingot from player's inventory
message "&e&lMONEY&r &e- &c%arg-3%&e cash was taken from you!"
Error Code
Code:
> [12:18:06 ERROR]: 'arg-3 iron ingot' can't be removed from an inventory because the former is neither an item type nor an inventory (test.sk, line 187: remove arg-3 iron ingot from player's inventory')
> [12:18:06 ERROR]: 'arg-3 iron ingot' can't be removed from an inventory because the former is neither an item type nor an inventory (test.sk, line 193: remove arg-3 iron ingot from player's inventory')
[NOTE]
In this case is line 187: line 6 and line 193: line 12
[doublepost=1564053870,1564049973][/doublepost][EDIT]
Arg-3 is a amount of cash.
I want that amount in iron ingots removed from a inventory.
Last edited: