Problem with mysql
#1

Hello guys! I have problem with mysql. I changed load/save system from yini to mysql and now mysql load system dont working.. On OnPlayerConnect public i put this

print("LOAD #1");
new query[128];
print("LOAD #1 #1");
mysql_format( _dbConnector, query, sizeof(query), "SELECT `user_id`, `password`, `registered` FROM `users` WHERE `p_name` = '%e' LIMIT 1", GetNameEx( playerid ) );
print("LOAD #1 #2");
mysql_pquery( _dbConnector, query, "CheckPlayerAccount", "i", playerid );
print("LOAD #1 END");

and then i check with the print.. It goes to the LOAD #1 END but nothing.. mysql_pquery must call function CheckPlayerAccount but it doesent

P.S I use mysql r41-4
Reply
#2

Is CheckPlayerAccount a public function? If not, change it. Check mysql logs as well (in logs/errors.log folder) because if an error occurred (such as unknown column), that public function won't be called.
Reply
#3

Problem fixed. Thank anyway <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)