I am making a word filter and would like to be able to add words from ingame but im getting a error
[doublepost=1579217806,1579217768][/doublepost]variables:
{warn} = 0
{words} = "text"
on chat:
if message contains {%words%}:
cancel event
send "Please don't curse" to player
add 1 to {warn.%player%}
if {warn.%player%} is "3":
execute console command "/tempmute %player% 1h swearing"
send "&4 You have been muted for cursing {warn.%player%} times"
command /cadd <text>:
trigger:
add arg-1 to {words}
[doublepost=1579217891][/doublepost]My error is: Can't understand this expression: words (word filter.sk, line 6: if message contains {%words%})
[doublepost=1579217806,1579217768][/doublepost]variables:
{warn} = 0
{words} = "text"
on chat:
if message contains {%words%}:
cancel event
send "Please don't curse" to player
add 1 to {warn.%player%}
if {warn.%player%} is "3":
execute console command "/tempmute %player% 1h swearing"
send "&4 You have been muted for cursing {warn.%player%} times"
command /cadd <text>:
trigger:
add arg-1 to {words}
[doublepost=1579217891][/doublepost]My error is: Can't understand this expression: words (word filter.sk, line 6: if message contains {%words%})