Jump to content

Changing the funciton of a button?


trajik

Recommended Posts

mysql_query( connect_mysql, "SELECT * FROM 'players' WHERE charName='" .. getPlayerName( theUser ) .. "'" )
or even
mysql_query( connect_mysql, "SELECT * FROM players WHERE charName='" .. getPlayerName( theUser ) .. "'" )

Link to comment

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
Link to comment

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.

Link to comment

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 :)

Link to comment

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