trajik Posted August 13, 2010 Author Posted August 13, 2010 Check if your query with ' instead of ` will work. I don't understand...
50p Posted August 13, 2010 Posted August 13, 2010 mysql_query( connect_mysql, "SELECT * FROM 'players' WHERE charName='" .. getPlayerName( theUser ) .. "'" ) or even mysql_query( connect_mysql, "SELECT * FROM players WHERE charName='" .. getPlayerName( theUser ) .. "'" ) - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
dzek (varez) Posted August 13, 2010 Posted August 13, 2010 wtf? MySQL query with single quote -> ' around table name? This "weird single quote" -> ` its for surrounding table/column names (not needed, until your table/column name is same as one mysql reserved words, like "date", "table", "create", etc) And normal single quote -> ' its for surrounding values. SELECT * FROM 'aaa' LIMIT 0, 30 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''aaa' LIMIT 0 , 30' at line 1 Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
trajik Posted August 14, 2010 Author Posted August 14, 2010 yeah still not what I'm looking for...in a nutshell this is what I mean function changeTheButtons() local query = (look for the players account name) if (query) then while true local find =(look back at the players account name and see if they have a character) if(find) then spawnCharacter() else createCharacter() end end freeResults.....ect. end I know it's not real code....but that's what I mean and what I need.
dzek (varez) Posted August 14, 2010 Posted August 14, 2010 Dump your database, using any software for MySQL, but in SQL code (CREATE TABLE ... etc), not in the way as above. And: I removed your "bump". Do not bump your post. Especially when there are no others topics waiting for reply, and when only 2 hours passed. Also do not double,triple,quadruple,multi post. I will remove all your bumps in the future. Thank you for understanding Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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