Simple skript problem

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

rehhon

Member
Nov 29, 2024
11
0
1
21
326387.png
 
Should I say that no matter what I do, it always gives me this error, even if I write the most correct code in the script, or is it wrong? I am using the latest version script on github
 
Send the whole code, but the solution is probably, that's an identation error


Code:
on join:
    broadcast "The player %player% joined!"
 
The code is exactly like this, I write sk reload test.sk but it gives the same error, I don't understand, is it possible that any plugin is blocking it? Or what am I doing wrong? I already keep it in server/plugins/skript/scripts
 
The code is exactly like this, I write sk reload test.sk but it gives the same error, I don't understand, is it possible that any plugin is blocking it? Or what am I doing wrong? I already keep it in server/plugins/skript/scripts
Where's the indentation???
U have to put a tab under the on join:

The exact same way i did

Code:
on join:
    broadcast "The player %player% joined!"
 
Well, can I ask one more question from your profile, something simple about the script
 
This is the basics of most programming languages, you have to indent


Look at this :emoji_slight_smile:
 
A tnt plugin sends me tnt with the /tnt 1 command. I want to add audio to it, that's all. How can I do this with script?

Community Verified icon
 
A tnt plugin sends me tnt with the /tnt 1 command. I want to add audio to it, that's all. How can I do this with script?

View attachment 9045
 
The command is clear. If it is not long, can you write what I should write and I will quote it? Should I copy 2 of the codes from the site you posted and what should I change
 
Can you make an example for me? What should I write in the script for the /tnt 1 command?
 
if you wanted to deletd the old %player% joined the game
use
Code:
on join:
    set join message to "&7%player% joined"
 
So how do I do this for the /tnt 1 command? I want to add sound to tnt
Code:
command /tnt <integer>:
    permission: server.whatever
    trigger:
        spawn 1 tnt at location of player
        add nbt from "{fuse:%arg-1%}" to last spawned entity #fuse is in ticks (20 ticks = 1 second)
        play sound "entity.creeper.primed" at player #change the sound to whatever

Try this.