|
[16:39:19] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [16:39:19] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [16:39:19] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [16:39:19] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') |
public OnServerInfoLoad()
{
serverInfo[taxi_darbo_fondas] = cache_get_field_content_int(0, "taxi_darbo_fondas", manomysql);
serverInfo[mediku_darbo_fondas] = cache_get_field_content_int(0, "mediku_darbo_fondas", manomysql);
serverInfo[policijos_darbo_fondas] = cache_get_field_content_int(0, "policijos_darbo_fondas", manomysql);
serverInfo[mafijos_darbo_fondas] = cache_get_field_content_int(0, "mafijos_darbo_fondas", manomysql);
}
|
There are no rows. Use cache_num_rows first to make sure there are rows returned and then use the cache functions.
|
new num_rows, num_fields;
cache_get_data(num_rows, num_fields, manomysql);
if(num_rows == 1)
|
new num_fields,num_rows; cache_get_data(num_rows,num_fields,manomysql); if(!num_rows)return 1; for(new i=0; i<num_rows; i++) { //code } |
|
new num_fields,num_rows; |
|
cache_get_data(num_rows,num_fields,manomysql); |
|
if(!num_rows)return 1; // return if there isn't um rows |
|
for(new i=0; i<num_rows; i++) |
|
cache_get_field_content_int(i, "info", mysql) |