Okay, so if I created something and then wanted to delete it after it wouldn't work because it doesn't have an ORM_ID but i wanted to know how to replace this Insert with ORM insert....
pawn Код:
new query[500];
format(query, sizeof(query), "INSERT INTO `dynamicdoors` (`Created`,`Owner`, `Name`, `Password`, `PassSwitch`, `Entry_X`, `Entry_Y`, `Entry_Z` ,`Entry_A`, `Entry_VW`, `Entry_Int`, `Ex_X`, `Ex_Y`, `Ex_Z`, `Ex_A`, `Ex_Int`, `Ex_VW`) VALUES");
format(query, sizeof(query), "%s (1, '%s', '%s', '%s', 0, %f, %f, %f, %f, %d, %d, 0.0, 0.0, 0.0, 0.0, 0, 0)", query, RPNU(ownerid), RPNU(ownerid), hashpass, DynamicDoor[dd][ddEnt][0], DynamicDoor[dd][ddEnt][1], DynamicDoor[dd][ddEnt][2], DynamicDoor[dd][ddEnt][3], DynamicDoor[dd][ddEntVW], DynamicDoor[dd][ddEntInt]);
mysql_format(mysql, query, sizeof(query), query);
mysql_tquery(mysql, query, "OnDoorCreated", "i", dd);