Solved Error with %player%

  • 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.

Wolwer

Active Member
Feb 8, 2018
53
5
8
Hello!
When I reloaded my skript I got an error:
Code:
 Can't understand this expression: '%player%' (core.sk, line 1639: set {serv.nick.%player%} to %player%')
Code:
Code:
on join:
    if {serv.nick.%player%} is not set:
        set {serv.nick.%player%} to %player%
What I should do with it?
 
Tell me your Skript version, and your server version.
The same thing happens if you have the latest skript version on 1.8.8, it just gets errors on everything like "can't understand this event: 'on jump' "
or "can't understand this effect 'set {var} to 20' "
 
Tell me your Skript version, and your server version.
The same thing happens if you have the latest skript version on 1.8.8, it just gets errors on everything like "can't understand this event: 'on jump' "
or "can't understand this effect 'set {var} to 20' "
Skript version 2.2-Fixes-V8b

Server: CraftBukkit version git-Spigot-db6de12-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
 
From
Code:
set {serv.nick.%player%} to %player%
To
Code:
set {serv.nick.%player%} to player
Change and try.
 
are you trying to store the name of the player or the player himself in that variable?
 
are you trying to store the name of the player or the player himself in that variable?
Eeeh, uuh. Idk how to do that.. Can u explain me how to do that?

I need to set {serv.nick.%player%} To players nickname

Else if it isn't setted it types <none>

Sry for bad English
[doublepost=1564429397,1564419003][/doublepost]
From
Code:
set {serv.nick.%player%} to %player%
To
Code:
set {serv.nick.%player%} to player
Change and try.
Ok. I have tested it and.. that's works! Thank you!
 
Status
Not open for further replies.