Bug 3846 - forward server_changelevel[] seems not working
forward server_changelevel[] seems not working
Status: RESOLVED INVALID
Product: AMX Mod X
Classification: Unclassified
Component: Core
trunk
All All
: P3 normal
Assigned To: amxmodx-bugs@alliedmods.net
http://www.amxmodx.org/funcwiki.php?g...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-05 10:56 PDT by |PJ| Shorty
Modified: 2013-06-15 15:22 PDT (History)
3 users (show)

See Also:


Attachments

Description |PJ| Shorty 2009-06-05 10:56:13 PDT
the forward server_changelevel[...] seems not to work

the forward will be never called
Comment 1 David Anderson [:dvander] 2009-06-05 11:12:00 PDT
This is only called when the mod or a plugin tries to change the map. It will never be called for anything else, and it won't be called for the changelevel command.
Comment 2 |PJ| Shorty 2009-06-07 03:00:03 PDT
from mapsmenu.sma:

public delayedChange(mapname[])
	server_cmd("changelevel %s", mapname)

if i understand right it won´t work if i change the map from the maps menu?
So how would it work with a plugin command to change the map?
Comment 3 David Anderson [:dvander] 2009-06-08 11:51:26 PDT
You've taken this code completely out of context so I'm not sure what you mean. "delayedChange" is probably a timer callback and has nothing to do with the server_changelevel forward.
Comment 4 |PJ| Shorty 2009-06-08 12:47:34 PDT
sry, my english is very "well" ^^

the code snippet is from mapsmenu.sma and will be executed if i change the map from the maps menu, i´m right?

[quote]
...and it won't be called for the changelevel
command.[/quote]

so changing the map within the maps menu will not call the server_changelevel forward if i understand right.

my question was:
if i want to change the map from inside a plugin which command i have to use to change the map that server_changelevel[] forward will be called in a different plugin

hope now it is more clear ^^
Comment 5 David Anderson [:dvander] 2009-06-09 01:41:04 PDT
Correct, map changes through that menu will not go through server_changelevel.

Note You need to log in before you can comment on or make changes to this bug.