Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An Error About Functions in dev26 #516

Closed
Blueyescat opened this issue Apr 17, 2017 · 5 comments
Closed

An Error About Functions in dev26 #516

Blueyescat opened this issue Apr 17, 2017 · 5 comments
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.

Comments

@Blueyescat
Copy link
Contributor

https://hastebin.com/ipodidumul.pl

@bloggy
Copy link

bloggy commented Apr 18, 2017

Same issue here. Started to happen when I reloaded some of my scripts:

https://hastebin.com/siligiyeve.vbs

@bensku bensku added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Apr 19, 2017
@bensku
Copy link
Member

bensku commented Apr 20, 2017

Pleade provide exact code which can be used to reproduce this. Function clearing should not fail with NPE in any case .. However, function data has invalid functions, and I want to know what causes them to appear.

@Blueyescat
Copy link
Contributor Author

Blueyescat commented Apr 20, 2017

The my Skript i reloaded hasn't got create function codes. But has got call functions:

function privateMessage(from: player, to: player, message: text):
^ This is from another Skript file

privateMessage(player, arg 1, arg 2)

  • player, offlineplayer, text
    ^ Maybe the problem is here, but this code can't work if arg-1 is offline. Anyway this error when reloading, Not when running.

privateMessage(player, {_lastMessaging} parsed as player, arg 1)

  • player, player, text

@bensku
Copy link
Member

bensku commented Apr 21, 2017

Strange... I have no idea why this would happen, then.

@TheLimeGlass
Copy link
Collaborator

TheLimeGlass commented Apr 25, 2017

@bensku In the dev-26 update you said you fixed the issue where Functions would return null in some reason cases also you fixed this

Fixed a bug with zero-argument functions

Which may be where the issue is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

No branches or pull requests

4 participants