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

getmapinfo() always returning -1 #2123

Closed
5 tasks done
bWolfie opened this issue Jul 6, 2018 · 0 comments
Closed
5 tasks done

getmapinfo() always returning -1 #2123

bWolfie opened this issue Jul 6, 2018 · 0 comments

Comments

@bWolfie
Copy link
Contributor

bWolfie commented Jul 6, 2018

Issue Prelude

  • I have not modified the source prior to reproducing this issue.
  • I am using the latest version of Hercules.
  • I am aware that this report will be closed or deleted if it becomes obvious that I am stating the false.

Description

When I first used getmapinfo 1 year ago or so when meko put it in it worked.
Here is example of it not working for me:
getmapinfo(MAPINFO_ZONE));
this value always -1 no matter what. even if go getmapinfo(MAPINFO_ZONE, strcharinfo(PC_NAME)));

Current Behavior

Always returning -1 unless I use a number for 2nd argument (which is useless for me)
E.g. getmapinfo(MAPINFO_NAME, 3); <- only form it works for me.

Expected Behavior

Should work as described in doc\script_commands.txt
Also, if it is returning string type, it should return "null", not -1.

Branch(es):

  • master
  • stable
@bWolfie bWolfie closed this as completed Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant