SA-MP Forums Archive
How to delete - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to delete (/showthread.php?tid=582204)



How to delete - tysanio - 18.07.2015

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


Re: How to delete - nezo2001 - 18.07.2015

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!");




Re : How to delete - tysanio - 18.07.2015

okay i see but in command?


Re: How to delete - nezo2001 - 18.07.2015

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


Re : How to delete - tysanio - 19.07.2015

Well thx help a lot