PDA

View Full Version : Is this wrong?


Voluble
04/07/2018, 09:12 PM
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?

Calisthenics
04/07/2018, 09:15 PM
Yes it is. The syntax is "DELETE FROM table_name ..."

Voluble
04/07/2018, 09:23 PM
You are right :O It works now!
I hadn't though of it, and it makes sense :)

Thankss! :D