kh0dan
Умник
Здравствуйте.
Столкнулся с такими ошибками.
Помогите пожалуйста.
Столкнулся с такими ошибками.
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62960)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62961)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62962)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62963)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62964)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62961)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62962)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62963)
[17:24:38] [plugins/mysql] cache_get_value_name: invalid row index '0' (number of rows: '0') (E:\mods#\modss\Tentax ROLEPLAY\gamemodes\Tentax.pwn:62964)
cache_get_value_name(0, "text_1", quick_mes[playerid][0][line], 128);
cache_get_value_name(0, "text_2", quick_mes[playerid][1][line], 128);
cache_get_value_name(0, "text_3", quick_mes[playerid][2][line], 128);
cache_get_value_name(0, "text_4", quick_mes[playerid][3][line], 128);
cache_get_value_name(0, "text_5", quick_mes[playerid][4][line], 128);
cache_get_value_name(0, "text_2", quick_mes[playerid][1][line], 128);
cache_get_value_name(0, "text_3", quick_mes[playerid][2][line], 128);
cache_get_value_name(0, "text_4", quick_mes[playerid][3][line], 128);
cache_get_value_name(0, "text_5", quick_mes[playerid][4][line], 128);
forward load_QuickMessage(playerid);
public load_QuickMessage(playerid) {
new rows;
cache_get_row_count(rows);
if(!rows) {
new query_string[128];
GetPlayerName(playerid, query_string, MAX_PLAYER_NAME);
format(query_string, sizeof query_string , "INSERT INTO `quick_message` (`name`) VALUES ('%s')", query_string);
mysql_tquery(dbHandle, query_string, "", "");
}
cache_get_value_name(0, "text_1", quick_mes[playerid][0][line], 128);
cache_get_value_name(0, "text_2", quick_mes[playerid][1][line], 128);
cache_get_value_name(0, "text_3", quick_mes[playerid][2][line], 128);
cache_get_value_name(0, "text_4", quick_mes[playerid][3][line], 128);
cache_get_value_name(0, "text_5", quick_mes[playerid][4][line], 128);
}
public load_QuickMessage(playerid) {
new rows;
cache_get_row_count(rows);
if(!rows) {
new query_string[128];
GetPlayerName(playerid, query_string, MAX_PLAYER_NAME);
format(query_string, sizeof query_string , "INSERT INTO `quick_message` (`name`) VALUES ('%s')", query_string);
mysql_tquery(dbHandle, query_string, "", "");
}
cache_get_value_name(0, "text_1", quick_mes[playerid][0][line], 128);
cache_get_value_name(0, "text_2", quick_mes[playerid][1][line], 128);
cache_get_value_name(0, "text_3", quick_mes[playerid][2][line], 128);
cache_get_value_name(0, "text_4", quick_mes[playerid][3][line], 128);
cache_get_value_name(0, "text_5", quick_mes[playerid][4][line], 128);
}
Помогите пожалуйста.
