Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
Show me your PlayerName function and the initialization of the "Escape" array. Also as far as I know, that function requires a connection to the MySQL server before being called, so make sure the connection exists.
Posts: 60
Threads: 5
Joined: Jan 2011
Reputation:
0
[16:41:33]
[16:41:33] ---------------------------
[16:41:33] MySQL Debugging activated (10/17/11)
[16:41:33] ---------------------------
[16:41:33]
[16:41:33] >> mysql_connect( )
[16:41:33] CMySQLHandler::CMySQLHandler() - constructor called.
[16:41:33] CMySQLHandler::CMySQLHandler() - Connecting to "127.0.0.1" | DB: "database" | Username: "database" ...
[16:41:33] CMySQLHandler::Connect() - Access denied for user 'database'@'localhost' (using password: YES) (Error ID: 1045)
[16:41:33] >> mysql_query( Connection handle: 1 )
[16:41:33] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
Well there's your problem, read the log instead of posting it here, as I'm sure you can read it and see the problem immediately. As it says you have no connection to the database when the function is called, and as it says the reason you're not able to connect to the database is because access was denied, which means you're getting a connection but the details are incorrect.
So you need to use the correct login details for your database in order to connect to it.
Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
What's not to understand? The errors are extremely obvious, read the log. You're trying to connect to the MySQL server but the login details are incorrect, you need to login using the correct details.
When you login on your SA-MP account on these forums, you type in the correct username + password, not the wrong one. The same applies for connecting to a MySQL server.