28.01.2011, 14:53
pawn Код:
// somewhere ontop of your script, under the includes.
#define MyHOST "localhost" // you said it runs on your PC so keep it like this
#define MyUSER "root" // change it if you have a user account for mysql; if you don't understand it leave it like this
#define MyPASS "" // password change it if you have one; if you don't understand leave it like this
#define MyDB "SQLDB" // change this if your database name is different, from what you have provided
// under OnGameModeInit
mysql_init();
mysql_connect(MyHOST, MyUSER , MyPASS, MyDB );
(the error means that you are not authorized to acces the mySQL database, this can either be caused by providing the wrong username and or password in the Pawn script. Or because you specified the wrong database).