summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-21 03:03:29 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-21 03:03:29 -0300
commit75b712abea826110958eb34f30372d0abc4b8e2a (patch)
treeb7a5092a08c1dc5a59fa32ade2a592e27375c9e7 /npc/functions/util.txt
parent3fe82d408b73c742cfff2b2c3dcc2541595005d4 (diff)
downloadserverdata-75b712abea826110958eb34f30372d0abc4b8e2a.tar.gz
serverdata-75b712abea826110958eb34f30372d0abc4b8e2a.tar.bz2
serverdata-75b712abea826110958eb34f30372d0abc4b8e2a.tar.xz
serverdata-75b712abea826110958eb34f30372d0abc4b8e2a.zip
New function: api_send()
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index c23352147..75f1faf64 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -1061,3 +1061,12 @@ function script json_encode {
}
+// api_send( code, data )
+// sends to API
+function script api_send {
+ .@cde=getarg(0);
+ .@fm$=getarg(1);
+ query_sql("INSERT INTO `api_export` (`type`, `data`) VALUES ('"+.@cde+"', \""+.@fm$+"\")");
+ return;
+}
+