loop-number/integer not an actual Skript integer #2326
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Description
The expressions
loop-number
andloop-integer
(as well asloop-value
if the value is an integer) are not usable as integers in function parametersSteps to Reproduce
Expected Behavior
No error should appear
Errors / Screenshots
The 1st argument given to the function 'test' is not of the required type integer. Check the correct order of the arguments and put lists into parentheses if appropriate (e.g. 'give(player, (iron ore and gold ore))'). Please note that storing the value in a variable and then using that variable as parameter will suppress this error, but it still won't work. (test.sk, line 8: test(loop-number)')
Server Information
Additional Context
Skript's "integers" being longs,
loop-number
is an actual integer and thus is not of type long. Also, this error didn't occur in 2.2.The text was updated successfully, but these errors were encountered: