Gui no work

  • 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 comminuty!

    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.

AKRODOGY

Active Member
Mar 20, 2018
52
2
8
24
code_language.skript:
command /permisiuni:
    trigger:
        open chest with 6 row named "&cPermisiuni" to player
        wait 1 tick
        if {cumparatwe.%player%} is "buywe":
            format slot 0 of player with redstone block named "&cBought!" with lore "5k" to close
        if {cumparatfawe.%player%} is "buyfawe":
            format slot 1 of player with redstone block named "&cBought!" with lore "5k" to close
        if {cumparatvs.%player%} is "buyvs":
            format slot 2 of player with redstone block named "&cBought!" with lore "5k" to close
        else:
            format slot 0 of player with diamond named "WorldEdit" with lore "5k" to close then run "adminwe"
            format slot 1 of player with diamond named "fawe.plotsquared" with lore "?" to close then run "adminfawe"
            format slot 2 of player with diamond named "voxelsniper.*" with lore "4.5k" to close then run "adminvs"
command /adminwe:
    trigger:
        execute console command "eco take %player% 5000"
        message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a worldedit.*&f!" to player
        set {cumparatwe.%player%} to "buywe"
command /adminfawe:
    trigger:
        execute console command "eco take %player% 5000"
        message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a fawe.*&f!" to player
        set {cumparatfawe.%player%} to "buyfawe"
command /adminvs:
    trigger:
        execute console command "eco take %player% 5000"
        message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a voxelsniper.*&f!" to player
        set {cumparatvs.%player%} to "buyvs"

The code , and in console it says
CONSOLE issued server command: /eco take <none> 5000
Error: Player not found.

and it doesn t change in redstone block
 
you shouldnt use skquery guis and you dont need to execute console commands:
code_language.skript:
add 5000 to player's balance
though im not sure why %player% would be none in the commands
 
I agree with Donut. I wouldn't use SkQuery GUIs I would use TUSKE GUI
Also, if you really do want to use this one, I believe skquery is trying to run your command as a console command, therefor you should do something like
code_language.skript:
to close then run "adminwe %player%"
and change your commands to include arguments like
code_language.skript:
command /adminwe <player>:
    trigger:
        remove 5000 from balance of arg-1
        message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a worldedit.*&f!" to arg-1
        set {cumparatwe.%arg-1%} to "buywe"
 
Status
Not open for further replies.