19.06.2012, 04:48
I wrapped the tablename with those quotes, I do have a table named Doors, there is a collumn called ID, and there is a row where ID is equal to 2. Still no result.
This is also being done through a command.
This is also being done through a command.
pawn Код:
CMD:destroydoor(playerid, params[])
{
// ...
new id = strval(params);
DestroyDoor(id);
return 1;
}
public DestroyDoor(id)
{
new
string[128]
;
format(string, sizeof(string), "DELETE FROM `Doors` WHERE ID = %d", id);
// ...
db_query(Database, string);
return 1;
}