Jump to content

MySQL error (1103)


GTX

Recommended Posts

Posted

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
Posted

Does the map name has multi quote characters ( ' ) in it?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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
Posted

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

Posted

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
Posted

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.

Posted

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
Posted

I would create one table and then store every map as a row.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

"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.

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...