I get this error when I try to reload scripts: "Can't understand this section: on placeholderapi request for the prefix "rp""

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

dcz1

Member
Aug 18, 2024
2
0
1
I am trying to script a command that changes the %rp_currentgame% placeholder to the arguments in the command, however when I am trying to reload the scripts I keep getting this error "Can't understand this section: on placeholderapi request for the prefix "rp"" I don't know what to do at this point, I've looked at other skUnity posts about this problem and the fixes on it don't work. I don't think it's a problem with the skript-placeholders addon because I have it installed at the latest version.

This is the code:
Code:
command /currentgame <player> <player>:
    permission: skript.command.currentgame
    trigger:
        on placeholderapi request for the prefix "rp":
            if the identifier is "currentgame":
                set the result to "%arg-1% vs %arg-2%"

This is the full error:
Code:
[11:00:19 INFO]: [Skript] Reloading all scripts...
[11:00:20 INFO]: Line 4: (currentgame.sk)
[11:00:20 INFO]:     Can't understand this section: on placeholderapi request for the prefix "rp"
[11:00:20 INFO]:     Line: on placeholderapi request for the prefix "rp":
[11:00:20 INFO]: 
[11:00:20 INFO]: [Skript] Encountered 1 error while reloading all scripts! (44ms)

Any recommendation is appreciated, I've been trying to fix this for the past 2 days and nothing.
 
Hey, uhm im not sure if you know how the placeholders works, because placeholder is calling everytime when he is in use. Also the on placeholderapi request for the prefix "rp": Is event in inself.. - That means when you want to use placeholder it should look like this:
Code:
on placeholderapi request for the prefix "rp":
    if the identifier is "currentgame":
        set the result to "%arg-1% vs %arg-2%"
Because you cant use event in another event..
 
Hey, uhm im not sure if you know how the placeholders works, because placeholder is calling everytime when he is in use. Also the on placeholderapi request for the prefix "rp": Is event in inself.. - That means when you want to use placeholder it should look like this:
Code:
on placeholderapi request for the prefix "rp":
    if the identifier is "currentgame":
        set the result to "%arg-1% vs %arg-2%"
Because you cant use event in another event..
oh... you live an learn, I'm pretty new to this