19.07.2013, 22:54
Hi, i want to upgrade my mysql plugin R6 to R7, i want to do it gradually. I want to use cache but not directly for try my query.
Exemply why this query don't work? I read to this post https://sampforum.blast.hk/showthread.php?tid=56564 mysql_num_rows it's okay on R7.
The log
My GetUserCreate return 0 all times but with R6 version it's okay.
Exemply why this query don't work? I read to this post https://sampforum.blast.hk/showthread.php?tid=56564 mysql_num_rows it's okay on R7.
PHP код:
GetUserCreate(playerid)
{
new query[130];
format(query,sizeof(query),"SELECT PlayerID FROM `comptes` WHERE Pseudo = '%s' LIMIT 1",GetPlayerNameEx(playerid));
mysql_function_query(ConnexionBDD, query, false, "", "");
mysql_store_result();
if(mysql_num_rows() > 0)
{
return 1;
}
mysql_free_result();
return 0;
}
Quote:
|
[20:41:00] Passing query SELECT PlayerID FROM `comptes` WHERE Pseudo = 'Soze' LIMIT 1 | [20:41:00] ProcessQueryThread() - Query was successful. (SELECT PlayerID FROM `dm_comptes` WHERE Pseudo = 'Soze' LIMIT 1) [20:41:00] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick() |


