Solved console commands not executing

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ESW_ST33le

Member
May 6, 2020
32
1
6
Im trying to make a server with generators in the sky, and a way to redeem tags. I have the tag redeem Skript already working, but when i try to make a gui to use them it doesn't work. The code i am using will be pasted. Please tell me what i am doing wrong (i dont know how to put the code in the fancy text this is my first time posting"

command /tags:
trigger:
open virtual chest inventory with size 1 named "&cTags" to player
format gui slot 0 of player with diamond named "&c&lGrinder &fTag" to run:
if player has permission "tags.grinder":
execute console command "lp user %player% meta addsuffix 1 " &c&l[Grinder]""
send "&cYou are now using &c&lGrinder &r&ctag!"
else:
send "&cYou Dont Own This Tag"
format gui slot 1 of player with emerald named "&c&lMega &a&lGri&e&lnder" to run:
if player has permission "tags.mega.grinder":
execute console command "/lp user %player% meta addsuffix 1 " &c&l[Mega &a&lGri&e&lnder]""
send "&cYou are now using &c&lMega &a&lGri&e&lnder &r&ctag!"
else:
send "&cYou Dont Own This Tag"


The error message I am recieving is "Can't understand this condition/effect: execute console command "lp user %player% meta adsuffix 1 " &c&l[Grinder]"" (tag.sk, line 6: execute console command "lp user %player% meta addsuffix 1 " &c&l[Grinder]"")
Can't understand this condition/effect: execute console command "/lp user %player% meta adsuffix 1 " &c&l[Mega &a&lGri&e&lnder]"" (tag.sk, line 6: execute console command "/lp user %player% meta addsuffix 1 " &c&l[Mega &a&lGri&e&lnder]"")
 
Im trying to make a server with generators in the sky, and a way to redeem tags. I have the tag redeem Skript already working, but when i try to make a gui to use them it doesn't work. The code i am using will be pasted. Please tell me what i am doing wrong (i dont know how to put the code in the fancy text this is my first time posting"

command /tags:
trigger:
open virtual chest inventory with size 1 named "&cTags" to player
format gui slot 0 of player with diamond named "&c&lGrinder &fTag" to run:
if player has permission "tags.grinder":
execute console command "lp user %player% meta addsuffix 1 " &c&l[Grinder]""
send "&cYou are now using &c&lGrinder &r&ctag!"
else:
send "&cYou Dont Own This Tag"
format gui slot 1 of player with emerald named "&c&lMega &a&lGri&e&lnder" to run:
if player has permission "tags.mega.grinder":
execute console command "/lp user %player% meta addsuffix 1 " &c&l[Mega &a&lGri&e&lnder]""
send "&cYou are now using &c&lMega &a&lGri&e&lnder &r&ctag!"
else:
send "&cYou Dont Own This Tag"


The error message I am recieving is "Can't understand this condition/effect: execute console command "lp user %player% meta adsuffix 1 " &c&l[Grinder]"" (tag.sk, line 6: execute console command "lp user %player% meta addsuffix 1 " &c&l[Grinder]"")
Can't understand this condition/effect: execute console command "/lp user %player% meta adsuffix 1 " &c&l[Mega &a&lGri&e&lnder]"" (tag.sk, line 6: execute console command "/lp user %player% meta addsuffix 1 " &c&l[Mega &a&lGri&e&lnder]"")
This should work:
code_language.skript:
execute console command "/lp user %player% meta addsuffix 1 ""&c&l[Mega &a&lGri&e&lInder]"""
This error usually happens when you don't add the necessary quotes. Therefore skript reads it as if you were closing a line.
 
This should work:
code_language.skript:
execute console command "/lp user %player% meta addsuffix 1 ""&c&l[Mega &a&lGri&e&lInder]"""
This error usually happens when you don't add the necessary quotes. Therefore skript reads it as if you were closing a line.
thanks
 
sorry im new to skUnity, how do i mark it as solved?
For future posts you make, the way you put as Solved is this:
upload_2020-5-11_19-42-38.png

Click the button 'Best answer' when anyone answer and solve your issue.

Or edit the title of threads and go to 'Solved'.
 
Status
Not open for further replies.