How to delete
#1

When i got nothing in my database i whant its say Error Nothing found
How can i do it?
Mysq r39
Reply
#2

PHP код:
new query[128];
format(querysizeof(query), "SELECT * from tableName");
mysql_query(1query);
new 
rows cache_get_row_count();
if(
rows == 0)
{
SendClientMessage(playerid, -1"Nothing Found!");

Reply
#3

okay i see but in command?
Reply
#4

PHP код:
CMD:yourcommand(playeridparams[])
{
new 
query[128];
format(querysizeof(query), "SELECT * from tableName");
mysql_query(1query);
new 
rows cache_get_row_count();
if(
rows == 0)
{
SendClientMessage(playerid, -1"Nothing Found!");

return 
1;

By ZCMD
Reply
#5

Well thx help a lot
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)