#Skript Function Issue

1 messages · Page 1 of 1 (latest)

gloomy vine
#

Here is my command:

    set {class.%{_player}%} to {_class}
    set {level.%{_player}%} to {_level}
    set {xplvl.%{_player}%} to {_xplvl}
    set {maxhealth.%{_player}%} to {_maxhealth}
    set {basearmor.%{_player}%} to {_basearmor}
    set {basedef.%{_player}%} to {_basedef}
    set {sturdy.%{_player}%} to {_sturdy}
    set {basestr.%{_player}%} to {_basestr}
    set {swiftness.%{_player}%} to {_swiftness}
    set {speed.%{_player}%} to {_speed}
    set {baseloot.%{_player}%} to {_baseloot}
    set {mglvl.%{_player}%} to {_mglvl}
    set {xpmglvl.%{_player}%} to {_xpmglvl}
    set {manaab.%{_player}%} to {_manaab}
    set {cstabl.%{_player}%} to {_cstabl}
    set {spell.%{_player}%} to {_spell}
    set {avspell.%{_player}%} to {_avspell}```
This is a function that sets variables of a player to a class, when I call the function it looks like this:
```classbase(player, 0, 0, 0, 20, 0, 0, 0, 20, 400, 100, 0, 0, 0, 0, 0, "false", 0)```
The game is complaining about not knowing what 0 is stating:
**Can't Understand this expression: '0' **
AND YES I HAVE CHECKED THE NOT SO HELPFUL DOCS. (Please stop referring me to there, I've already checked about a billion times to make sure.)
old agate
#

The avspell (last argument) takes a text and you put a number in

#

That’s why

gloomy vine