Function changemapKinger_money User Offline 13.07.14 16:16:21 function changemap(mapname) parse('changemap "..mapname.."') end 5× editiert, zuletzt 13.07.14 17:17:01
Re: Function changemapDC Admin Offline 13.07.14 16:27:18 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 16:29:59 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 16:32:58 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")