Bugzilla – Bug 3846
forward server_changelevel[] seems not working
Last modified: 2013-06-15 15:22:05 PDT
the forward server_changelevel[...] seems not to work the forward will be never called
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.
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?
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.
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 ^^
Correct, map changes through that menu will not go through server_changelevel.