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

rh_get_mapname returns an empty string #134

Closed
SadWaifu opened this issue Jun 22, 2019 · 6 comments
Closed

rh_get_mapname returns an empty string #134

SadWaifu opened this issue Jun 22, 2019 · 6 comments

Comments

@SadWaifu
Copy link

new szMapName[MAX_MAPNAME_LENGTH];
rh_get_mapname(szMapName, MAX_MAPNAME_LENGTH -1, MNT_TRUE); //or MNT_SET
log_amx("Map name: %s", szMapName);

Output: L 06/22/2019 - 01:37:43: [test.amxx] Map name:

@s1lentq
Copy link
Collaborator

s1lentq commented Jun 22, 2019

Unfortunately I couldn't reproduce this issue on win/lin
Did you do anything before the issue occurred?

@Vaqtincha
Copy link
Contributor

try to use get_mapname

@SadWaifu
Copy link
Author

Unfortunately I couldn't reproduce this issue on win/lin
Did you do anything before the issue occurred?

5 seconds after loading the map, I set the new map name using rh_set_mapname.

try to use get_mapname

I'm sorry, but it doesn't suit me.

@SadWaifu
Copy link
Author

@s1lentq

Fake_Map_Name.zip

@s1lentq

This comment has been minimized.

@SadWaifu
Copy link
Author

so when do you use rh_get_mapname before or after changelevel?

After

@s1lentq s1lentq transferred this issue from rehlds/ReGameDLL_CS Jun 23, 2019
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

3 participants