Function changemapKinger_money User Offline 13.07.14 04:16:21 pm function changemap(mapname) parse('changemap "..mapname.."') end edited 5×, last 13.07.14 05:17:01 pm
Re: Function changemapDC Admin Offline 13.07.14 04:27:18 pm Maybe you specified the wrong map name. Take a look at the console after trying to load the map. What does it say? How are you calling the function? Also: Won't work for maps with white spaces in the name. This should fix white space problems: 123function changemap(mapname) 	parse('changemap "'..mapname..'"') end
Re: Function changemapKinger_money User Offline 13.07.14 04:29:59 pm DC, LUA ERROR: sys/lua/autorun/autorun.lua:2: attempt to concatenate local 'mapname' (a nil value) i use map de_dust
Re: Function changemapDC Admin Offline 13.07.14 04:32:58 pm You're calling changemap without specifying the parameter (mapname) correctly. That's why I asked you how you're calling it. Example of a correct call: 1changemap("de_dust")