SA-MP Forums Archive
OnQueryError() - Called - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnQueryError() - Called (/showthread.php?tid=566326)



OnQueryError() - Called - rOps - 05.03.2015

Код HTML:
LoadJobRanks()
{
	new buffer[128], count = 0;
	mysql_query("SELECT * FROM job_ranks");
	mysql_store_result();
	while(mysql_fetch_row_format(buffer, "|"))
		sscanf(buffer, "p<|>e<iis[" #MAX_RANK_NAME "]ii>", RankInfo[ count++ ]);
	mysql_free_result();
	return 1;
}
this is errors:
Код HTML:
[11:02:16] CMySQLHandler::Query(SELECT * FROM job_ranks) - Successfully executed.

[11:02:16] >> mysql_store_result( Connection handle: 1 )

[11:02:16] CMySQLHandler::StoreResult() - Result was stored.

[11:02:16] >> mysql_fetch_row_format( Connection handle: 1 )

[11:02:16] CMySQLHandler::FetchRow() - Return: pirmas|1|1|523|20

[11:02:16] >> mysql_fetch_row_format( Connection handle: 1 )

[11:02:16] CMySQLHandler::FetchRow() - Return: antras|1|2|599|30

[11:02:16] >> mysql_fetch_row_format( Connection handle: 1 )

[11:02:16] >> mysql_free_result( Connection handle: 1 )

[11:02:16] CMySQLHandler::FreeResult() - Result was successfully free'd.

[11:02:16] >> mysql_free_result( Connection handle: 1 )

[11:02:16] CMySQLHandler::FreeResult() - The result is already empty.

[11:02:17] OnQueryError() - Called.

[11:02:17] OnQueryError() - Called.

[11:02:17] OnQueryError() - Called.

[11:02:17] OnQueryError() - Called.
And ranks doesnt loading -.-