rusztamas Posted January 21, 2017 Share Posted January 21, 2017 Hello! I want to make a script, which would make my days more confortable while writing scripts into mtaserver.conf, by a very simple outputchatbox script, but i have no idea how to fix this. Script: function mtaserverconf(thePlayer, cmd, variable) local startup = "1" local protected = "0" outputChatBox ("<resource src="..tostring(variable).." startup="..startup.." protected="..protected.." />", thePlayer) end addCommandHandler ("m", mtaserverconf) The problem is: If i type in m asd it would display the following: <resource src=asd startup=1 protected=0 /> <!--this is a bad syntax, there are missing symbols--> <resource src="asd" startup="1" protected="0" /> <!-- this is a good one--> Can somebody help me to make this possible? Link to comment
rusztamas Posted January 21, 2017 Author Share Posted January 21, 2017 Fixed: outputChatBox ("<resource src="..'"'..variable..'"'.." startup="..'"'..startup..'"'.." protected="..'"'..protected..'"'.." />", thePlayer) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now