GTX Posted July 6, 2012 Posted July 6, 2012 Hi, this problem is now already annoying... When map starts, it outputs this: Error executing the query: (1103) Incorrect table name '[DM] blabla -Vol- Balbla '. I can't find solution. Script: mapname = mysql_escape_string(connect_mysql, mapname) result = mysql_query(connect_mysql, "CREATE TABLE IF NOT EXISTS `"..mapname.."` (name VARCHAR(30), time TEXT, date TEXT, serial VARCHAR(100), tag VARCHAR(100))") It works on some maps. Thanks in advance. Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
Castillo Posted July 6, 2012 Posted July 6, 2012 Does the map name has multi quote characters ( ' ) in it? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
GTX Posted July 6, 2012 Author Posted July 6, 2012 No, the map name is [DM] OeLIave ft. r3n3g4d0 - Exodus (with space at the end, is that problem?) Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
Anderl Posted July 6, 2012 Posted July 6, 2012 I think tables can't have spaces. Use resource name instead. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
GTX Posted July 6, 2012 Author Posted July 6, 2012 The tables can have spaces, I tested. Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
robhol Posted July 6, 2012 Posted July 6, 2012 The failing maps have invalid characters in them - something the error message tells you pretty clearly. What are you trying to do here, and why do you need a table for each map? Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
GTX Posted July 6, 2012 Author Posted July 6, 2012 I need it. What would you do instead of creating table? Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
Castillo Posted July 6, 2012 Posted July 6, 2012 I would create one table and then store every map as a row. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
robhol Posted July 6, 2012 Posted July 6, 2012 "I need it" is a beyond crappy answer. If you don't want to answer people's questions, how do you expect to get any help? Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
GTX Posted July 7, 2012 Author Posted July 7, 2012 I would create one table and then store every map as a row. And then how am I supposed to store top times in a row? Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
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