Is this wrong? - 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: Is this wrong? (
/showthread.php?tid=656000)
Is this wrong? -
Voluble - 04.07.2018
PHP код:
new Query[128]; mysql_format(mysql, Query, sizeof Query,"DELETE * FROM `players` WHERE `Name` = '%s'", pName(playerid));
mysql_tquery(mysql, Query, "", "");
It's supposed to delete your own account, but i can't make it work. Any idea why?
Re: Is this wrong? -
Calisthenics - 04.07.2018
Yes it is. The syntax is "DELETE FROM table_name ..."
Re: Is this wrong? -
Voluble - 04.07.2018
You are right :O It works now!
I hadn't though of it, and it makes sense
Thankss!