31.01.2016, 09:30
Q3 - issue solved,
Q1 - I use non-threaded queries, since its like "near to hell" changing to threaded queries in my script, that's okay, now in non-threaded queries the cache is saved automatically, but should I delete with the cache_delete(); ?
example
now should i use cache_delete(Clan);
Q1 - I use non-threaded queries, since its like "near to hell" changing to threaded queries in my script, that's okay, now in non-threaded queries the cache is saved automatically, but should I delete with the cache_delete(); ?
example
Код:
mysql_format(mysql,query,sizeof(query),"SELECT `clan`,`Clanscore` FROM `clans` ORDER BY `Clanscore` DESC LIMIT 30");
mysql_query(mysql,query);
if(cache_num_rows(mysql) > 0)
{
for(new i = 0; i < cache_get_row_count(); i++)
{
cache_get_field_content(i, "clan", Clan);
cache_get_field_content(i, "Clanscore",score);
format(content,sizeof(content),"%s%s\t\t%s Score\n",content,Clan,score);
}
}
else if(AdminLevel{playerid} < 4) return SendLangMessage(playerid, _COLOR_RED, "Es gibt keine Clans!","There are no Clans!","No hay clanes!");

