18.07.2015, 21:27
When i got nothing in my database i whant its say Error Nothing found
How can i do it?
Mysq r39
How can i do it?
Mysq r39
new query[128];
format(query, sizeof(query), "SELECT * from tableName");
mysql_query(1, query);
new rows = cache_get_row_count();
if(rows == 0)
{
SendClientMessage(playerid, -1, "Nothing Found!");
}
CMD:yourcommand(playerid, params[])
{
new query[128];
format(query, sizeof(query), "SELECT * from tableName");
mysql_query(1, query);
new rows = cache_get_row_count();
if(rows == 0)
{
SendClientMessage(playerid, -1, "Nothing Found!");
}
return 1;
}