12.11.2013, 08:50
It gives me argument type mismatch (argument 1)
At line mysql_funtion_query
How to solve this?
At line mysql_funtion_query
How to solve this?
HTML Code:
new
count = 10,
result[2][32],
string[(24 + 10) * 10];
mysql_function_query("SELECT `Score`, `PlayerName` FROM `"#MYSQL_TABLE"` ORDER BY `Score` ASC LIMIT 10");
mysql_store_result();
if (mysql_num_rows() < 1) return 0;
while (mysql_retrieve_row() && count > 0)
{
mysql_fetch_field_row(result[0], "Score");
mysql_fetch_field_row(result[1], "PlayerName");
format(string, sizeof(string), "%s%d. %s: %d\n", string, count--, result[1], strval(result[0]));
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Top 10", string, "Close", "");