Tymofek
New Member
Hello, Thx for reading.
am having a problem with mysql, as i've being reading, its a known problem with tfs 0.2 and mysql querys.
i created a new column in the database named "number" in the accounts table.
i need to do something like this:
if am not wrong this would bring the value placed in the table accounts column number right?
then my script would success!
but i dunno how to make the connection with the database so as i was reading i found this
http://otland.net/f163/forgotten-server-0-3-db-class-0-2-a-26225/
but still cannot connect because i dont know how to spell that line to connect.
Please! give me something to try!
btw i also need a script to update that value
something like
I hope you will know everything i dont xD
Thx in advance
am having a problem with mysql, as i've being reading, its a known problem with tfs 0.2 and mysql querys.
i created a new column in the database named "number" in the accounts table.
i need to do something like this:
Code:
if msgcontains(msg,"lalala") then
if ("SELECT `number` FROM `accounts` WHERE id="..getPlayerGUID(cid)..";")) == 1 then
blah blah blah.
if am not wrong this would bring the value placed in the table accounts column number right?
then my script would success!
but i dunno how to make the connection with the database so as i was reading i found this
http://otland.net/f163/forgotten-server-0-3-db-class-0-2-a-26225/
but still cannot connect because i dont know how to spell that line to connect.
Please! give me something to try!
btw i also need a script to update that value
something like
Code:
if msgcontains(msg,"lelele") then
("UPDATE accounts SET number='1' WHERE id="..getPlayerGUID(cid)..";")
doPlayerSendTextMessage blah blah blah.
I hope you will know everything i dont xD
Thx in advance