PDA

View Full Version : cache_get_data - no active cache


viveka27
11/09/2013, 07:23 AM
Umm I Use MySQL R31.
Code:
public OnAccountCheck(playerid)
{
SendClientMessage(playerid, WHITE, "[DEBUG]: Mau #3");
new string[125];
if(playerid != INVALID_PLAYER_ID) {

new rows, fields;
cache_get_data(rows, fields, handle);
if(rows) {
cache_get_row(0,2,PlayerInfo[playerid][pKey],handle, 128);
format(string, sizeof(string), "Selamat Datang Kembali Di %s, %s.", SERVER_NAME, PlayerName(playerid));
SendClientMessage(playerid, GREY, string);
SendClientMessage(playerid, WHITE, "[DEBUG]: Show Dialog Login");
SendClientMessage(playerid, WHITE, "That name is currently registered, please log into your account.");
ShowMainMenuDialog(playerid, 1);
}
else {
format(string, sizeof(string), "Selamat Datang Di %s, %s.", SERVER_NAME, PlayerName(playerid));
SendClientMessage(playerid, GREY, string);
SendClientMessage(playerid, WHITE, "[DEBUG]: Show Dialog Register");
SendClientMessage(playerid, WHITE, "That name is currently not registered.");
SendClientMessage(playerid, WHITE, "If you wish to register, please input your password in the box below.");
ShowMainMenuDialog(playerid, 2);
}
}
return 1;
}

MySQL Log
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:15:11] [WARNING] cache_get_data - no active cache
[20:16:09] [ERROR] mysql_tquery - callback parameter count does not match format specifier length
[20:16:09] [WARNING] cache_get_data - no active cache
[20:16:18] [ERROR] mysql_tquery - callback parameter count does not match format specifier length
[20:16:18] [WARNING] cache_get_data - no active cache
[20:16:43] [ERROR] mysql_tquery - callback parameter count does not match format specifier length
[20:16:43] [WARNING] cache_get_data - no active cache
[20:17:20] [ERROR] mysql_tquery - callback parameter count does not match format specifier length
[20:17:20] [WARNING] cache_get_data - no active cache
[20:18:41] [ERROR] mysql_tquery - callback parameter count does not match format specifier length
[20:18:41] [WARNING] cache_get_data - no active cache
[20:19:13] [ERROR] mysql_tquery - callback parameter count does not match format specifier length
[20:19:13] [WARNING] cache_get_data - no active cache
[20:19:27] [ERROR] mysql_tquery - callback parameter count does not match format specifier length
[20:19:27] [WARNING] cache_get_data - no active cache


Please help me to solve this problem.Thank You

viveka27
16/09/2013, 10:35 AM
Bump

viveka27
16/09/2013, 11:47 PM
Bump