#SMP Core Skript errors i cant resolve

1 messages · Page 1 of 1 (latest)

stiff apex
#
options:
    SpeedUpTime: speed_up_time
    SlowDownTime: slow_down_time

on join:
    give player a clock named "&6Time Control Pad"

on right click with clock:
    if player's held item is named "&6Time Control Pad":
        open chest with 1 rows named "&7Time Control Settings" to player
        format slot 0 of player with paper named "&aSpeed Up Time" to close then run:
            set {player_time_control.%player%} to {@SpeedUpTime}
            send "&aYou chose to speed up time when you kill someone." to player
        format slot 1 of player with paper named "&cSlow Down Time" to close then run:
            set {player_time_control.%player%} to {@SlowDownTime}
            send "&cYou chose to slow down time when you kill someone." to player

on death of player:
    attacker is a player
    victim is a player
    if {player_time_control.%attacker%} is {@SpeedUpTime}:
        increase server's ticks per second by 1
        send "&aYou have increased the tick speed by 1." to attacker
    if {player_time_control.%attacker%} is {@SlowDownTime}:
        decrease server's ticks per second by 1
        send "&cYou have decreased the tick speed by 1." to attacker

On joining, you get a time control pad
You can set if you want to speed up time or slow down time
If you choose speed up time, it makes it so when you kill someone it'll increase the tick speed.
If you choose slow down time, it makes it so when you kill someone it'll decrease the tick speed.

thats the skript idea

#

but ive been g etting these errors

[18:53:13 INFO]: Line 9: (controlsmp.sk)
[18:53:13 INFO]:     Can't compare a slot with 'named "&6Time Control Pad"'
[18:53:13 INFO]:     Line: if player's held item is named "&6Time Control Pad":
[18:53:13 INFO]:  
[18:53:13 INFO]: Line 21: (controlsmp.sk)
[18:53:13 INFO]:     Can't understand this condition: '{player_time_control.%attacker%} is speed_up_time'
[18:53:13 INFO]:     Line: if {player_time_control.%attacker%} is {@SpeedUpTime}:
[18:53:13 INFO]:  
[18:53:13 INFO]: Line 24: (controlsmp.sk)
[18:53:13 INFO]:     Can't understand this condition: '{player_time_control.%attacker%} is slow_down_time'
[18:53:13 INFO]:     Line: if {player_time_control.%attacker%} is {@SlowDownTime}:
[18:53:13 INFO]:  
[18:53:13 INFO]: [Skript] Encountered 3 errors while reloading controlsmp.sk! (18ms)
sweet wharf
#

its name of player's held item = "text" not player's held item is named "text" for line 9

hard lark
#

As well as last