23.01.2013, 02:06
I use mysql plugin r7
Код:
mysql_function_query(mysql_Account, query, false, "IsResultExist","i",i);
mysql_function_query(mysql_Account, query, false, "IsResultExist","i",i);
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle) { printf("(%i) %s",errorid, error); }
Check what this outputs:
Код:
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle) { printf("(%i) %s",errorid, error); } |
forward IsResultExist(handleid); public IsResultExist(handleid) { SendClientMessageToAll(COLOR_RED,"IsResultExist Runned"); mysql_store_result_Account(); if(!mysql_num_rows_Account()) { mysql_Result_Check[handleid] = 0; } else { mysql_Result_Check[handleid] = 1; } mysql_free_result_Account(); return 1; }
mysql_function_query(mysql_Account, query, false, "IsResultExist","i",playerid);
mysql_function_query(mysql_Account, query,true, "IsResultExist","i",playerid);
public IsResultExist(handleid) { new rows,fields; cache_get_data(rows,fields); if(rows) { } else { } return 1; // No need for mysql_free_result if you return it. }
You disabled cache.
Код:
mysql_function_query(mysql_Account, query,true, "IsResultExist","i",playerid); Код:
public IsResultExist(handleid) { new rows,fields; cache_get_data(rows,fields); if(rows) { } else { } return 1; // No need for mysql_free_result if you return it. } |
#define mysql_query(%1,%2,%3,%4) \ mysql_function_query(%4,%1,false,"OnQueryFinish","siii",%1,%2,%3,%4)
You disabled cache.
Код:
mysql_function_query(mysql_Account, query,true, "IsResultExist","i",playerid); Код:
public IsResultExist(handleid) { new rows,fields; cache_get_data(rows,fields); if(rows) { } else { } return 1; // No need for mysql_free_result if you return it. } |