29.04.2011, 12:09
I have a problem with my MYSQL query. The query doesn't load all the rows stated below. The rows are named correctly, everything is correct.
code:
It loads only one row, and I think that row is called "kills".
I hope you can help me.
code:
pawn Код:
format(query, sizeof(query), "SELECT `kills`,`deaths`,`points`,`infpoints` FROM `users` WHERE `username` = '%s'", PlayerName(playerid));
mysql_query(query);
mysql_store_result();
if(mysql_fetch_row_format(query))
{
sscanf(query, "p<|>iiii", Kills[playerid], Deaths[playerid], Points[playerid], FPoints[playerid]);
printf("Selected %d rows", mysql_num_rows());
} else {
print("Nothing found");
}
I hope you can help me.