Hi,
I'm very confused about how to resolve this issue I'm having. Admittedly I'm not having a very easy time working with Skript as I'm much more used to something like Java, albeit having a very basic understanding of it.
I'm having two errors. I do not have any addons. Any help would be extremely appreciated as I've been trying to get this to work for almost 2 hours with no luck.
Code (errors below):
Line 10: (gold.sk)
Line 12: (gold.sk)
I'm very confused about how to resolve this issue I'm having. Admittedly I'm not having a very easy time working with Skript as I'm much more used to something like Java, albeit having a very basic understanding of it.
I'm having two errors. I do not have any addons. Any help would be extremely appreciated as I've been trying to get this to work for almost 2 hours with no luck.
Code (errors below):
Code:
options:
achtext: &aAchievement by %loop-player%:&a
variables:
{ach.%player%.StackGoldBlock} = 0
every 5 seconds:
loop all players:
if loop-player's inventory contains 64 of gold block:
if {ach.%player%.StackGoldBlock} = 0
send "{@achtext} &fStack of GOLD_BLOCK" to all players
set {ach.%player%.StackGoldBlock} to 1
Line 10: (gold.sk)
Can't compare 'if if {ach.%player%.StackGoldBlock} = 0' with an integer.
Line: if {ach.%player%.StackGoldBlock} = 0
Line: if {ach.%player%.StackGoldBlock} = 0
Line 12: (gold.sk)
There's no player in a periodical event
Line: set {ach.%player%.StackGoldBlock} to 1
Line: set {ach.%player%.StackGoldBlock} to 1