Hello, I am getting the following error when reloading my skript:
But, I am pretty sure the variable p is declared in the head of the function - please take a look.
Thanks anyone for any help <3
EDIT: If I try to add it to a variable, something goes horribly with skript error pops up.
code_language.skript:
>[2K [13:19:09 ERROR]: Can't understand this expression: p (Levelsystem.sk, line 32: if {exp.%p%} is greater than (2*((%{level.%p%}%+6)*(%{level.%p%}%+6))+4*%{level.%p%}%):')
But, I am pretty sure the variable p is declared in the head of the function - please take a look.
code_language.skript:
function checkForLevelUp(p: player):
if {exp.%p%} is greater than (2*((%{level.%p%}%+6)*(%{level.%p%}%+6))+4*%{level.%p%}%):
remove 2*((%{level.%p%}%+6)*(%{level.%p%}%+6))+4*%{level.%p%}% from {exp.%p%}
add 1 to {level.%p%}
send "Level up!" to p
EDIT: If I try to add it to a variable, something goes horribly with skript error pops up.
Last edited: