16.08.2015, 15:25
I think you should use cache_num_rows not cache_get_row_count. Not sure if that's true or not but that's how I use it and it works fine, and just found an example on the wiki:
EDIT: By the way isn't 'carID' is an integer? Why are you loading it as a string?
pawn Код:
new Cache:result = mysql_query(MySQL, "SELECT `id` FROM `players`");
printf("There are %d players in the database.", cache_num_rows());
cache_delete(result);
EDIT: By the way isn't 'carID' is an integer? Why are you loading it as a string?
pawn Код:
cache_get_field_content(row, const field_name[], destination[], connectionHandle = 1, max_len = sizeof(destination))
pawn Код:
cache_get_field_content_int(row, const field_name[], connectionHandle = 1);