29.10.2014, 03:10
Hello, today I'm making a 'top players' system, but something unexpected appear, CSS with HTML in the result of a Query!
Here is an image:
WTF with that! I'm scared!
Here is the code of that Query:
So, WTF in my database there aren't any HTML
Anyone can help me about this?
The only mistake is that "i+1" is before "Query" but is VERY strange the result
Here is an image:
WTF with that! I'm scared!
Here is the code of that Query:
pawn Код:
new Cache:result;
result = mysql_query(ID, "SELECT Player_Name, Money FROM Users ORDER BY Money DESC LIMIT 10");
format(Query, sizeof(Query), "{FFFFFF}Top Money\n");
for(new i = 0; i<cache_get_row_count(ID); i++)
{
cache_get_field_content(i, "Player_Name", aux, ID, sizeof(aux));
format(Query, sizeof(Query), "%s{B7FF00}%d. %s - {FFFFFF}%s\n", i+1, Query, aux, ConvertToMoney(cache_get_field_content_int(i, "Money", ID)));
}
cache_delete(result, ID);
Anyone can help me about this?
The only mistake is that "i+1" is before "Query" but is VERY strange the result