SA-MP Forums Archive
How to use ORM Insert successfull? - 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 use ORM Insert successfull? (/showthread.php?tid=540427)



How to use ORM Insert successfull? - trapstar2020 - 04.10.2014

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