MYSQL and main() has been called.
#4

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:

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);
Reply


Messages In This Thread
MYSQL and main() has been called. - by Invizion - 16.08.2015, 15:04
Re: MYSQL and main() has been called. - by DaniceMcHarley - 16.08.2015, 15:10
Re: MYSQL and main() has been called. - by Invizion - 16.08.2015, 15:18
Re: MYSQL and main() has been called. - by DaniceMcHarley - 16.08.2015, 15:25
Re: MYSQL and main() has been called. - by Invizion - 16.08.2015, 16:43
Re: MYSQL and main() has been called. - by DaniceMcHarley - 16.08.2015, 19:04
Re: MYSQL and main() has been called. - by Invizion - 16.08.2015, 21:58
Re: MYSQL and main() has been called. - by DaniceMcHarley - 17.08.2015, 06:34
Re: MYSQL and main() has been called. - by Invizion - 17.08.2015, 10:10
Re: MYSQL and main() has been called. - by Dokins - 17.08.2015, 11:19

Forum Jump:


Users browsing this thread: 3 Guest(s)