[Question] MySQL Plugin
#1

I have a command that needs a name of a player with underscores (e.g. John_Doe) and would update records in the database if the user exists. My problem is, that whenever it INSERTS or UPDATES data, it get rids of the underscore from the name.

So for example:
A player types "/pay John_Doe 5000"

Here's what the MySQL function actually does:
Код:
CMySQLHandler::Query(UPDATE accounts SET money=money+'5000' WHERE username='John Doe') - Successfully executed.
With the example given, you would see that the underscore from the name was removed. This was taken from an actual debug text file of the MySQL plugin.

Any thoughts on this?
Reply


Messages In This Thread
[Question] MySQL Plugin - by Skribblez - 07.04.2012, 22:26
Re: [Question] MySQL Plugin - by TheLazySloth - 07.04.2012, 23:42
Re: [Question] MySQL Plugin - by Skribblez - 07.04.2012, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)