diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-21 03:03:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-21 03:03:29 -0300 |
commit | 75b712abea826110958eb34f30372d0abc4b8e2a (patch) | |
tree | b7a5092a08c1dc5a59fa32ade2a592e27375c9e7 /npc | |
parent | 3fe82d408b73c742cfff2b2c3dcc2541595005d4 (diff) | |
download | serverdata-75b712abea826110958eb34f30372d0abc4b8e2a.tar.gz serverdata-75b712abea826110958eb34f30372d0abc4b8e2a.tar.bz2 serverdata-75b712abea826110958eb34f30372d0abc4b8e2a.tar.xz serverdata-75b712abea826110958eb34f30372d0abc4b8e2a.zip |
New function: api_send()
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/util.txt | 9 |
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; +} + |