Advertisement
Guest User

Untitled

a guest
May 30th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.32 KB | None | 0 0
  1. [Default]
  2. Version = 7
  3.  
  4. Number of Inputs = 0
  5. ; Default Value = 0
  6.  
  7. Sanitize Input Value Check = false
  8. ; Default Value = True
  9.  
  10. Sanitize Output Value Check = false
  11. ; Default Value = True
  12.  
  13. String Datatype Check = false
  14. ; Default Value = True
  15. ; If Database Type is String adds Quotations around Text / VarChar DataTypes when retrieving Values
  16. ; Note: This Doesn't Work for Text DataTypes for MySQL but with Poco
  17. ; Important try to avoid this, will break whenever extDB updates to 1.6/1.7 Poco
  18.  
  19. Strip = true
  20. ;Enable / Disable Strip
  21.  
  22. Strip Chars = /\|;{}<>'
  23. ; Can't Strip Char : since its used as a divider in extDB.
  24. ; If you need it stripped you will need todo it in SQF Code.
  25. ; Note: if value contains divider :
  26. ; It will result in extDB reading to many input values + will return an error anyway.
  27.  
  28. ; Important if you are using $INPUT_STRING_x, recommended you strip the char `
  29. ; That is the quotation char used to wrap strings
  30.  
  31. Strip Chars Action = STRIP+LOG
  32. ; Actions NONE / STRIP / STRIP+LOG / STRIP+ERROR
  33. ; None
  34. ; Strip
  35. ; Strip + Add Logs to extDB Logs
  36. ; Strip + Error, doesnt execute SQL, reports error back to server
  37.  
  38.  
  39. Prepared Statement Cache = true
  40. ; Allows you disable to Caching Prepared Statements,
  41. ; Useful to disable Per Call, for the SQL Statements you are only going to run once i.e at server startup
  42. ; Also useful to disable global during testing, if you are altering Database Scheme on Live Server.
  43.  
  44.  
  45. ;; [CALL_NAME] INFO
  46.  
  47. ;; ---------------------------------------
  48. ;; ---------------------------------------
  49. ;; SQLx_y x = SQL Statement Line y = SQL Statement Line x Part y
  50. ;; This allows for to define multiple SQL Prepared Statements to run with a single callextension.
  51.  
  52.  
  53. ;; Number of Inputs is the number of total inputs. If inputs received doesnt match this number. SQL Statement wont run.
  54.  
  55. ;; SQLx_INPUTS is INPUTS to use for SQL Line x
  56. ;; OUPUT is same as SQLx_INPUTS
  57.  
  58. ;; INPUT / OUTPUT Options
  59. ;; STRING Removes " from VALUE + then add " to either end of VALUE i.e "VALUE"
  60. ;; BEGUID Converts Value to BEGUID
  61. ;; CHECK Sanitize Check
  62. ;; NOCHECK
  63. ;; STRIP Strip Chars (overrides Default Setting)
  64. ;; STRIP
  65. ;; AltisLifeRPG_Array Converts Array format to Altis Life RPG format, for legacy support
  66.  
  67. ;; They are separated by comma ,
  68. ;; Options themselves are tokenized by -
  69. ;; So the Option 1-STRING-BEGUID means INPUT VALUE 1 -> converted to BEGUID + quotes added (order of tokens makes no difference)
  70.  
  71.  
  72.  
  73.  
  74. ;;**************************************************************
  75. ;;**************************************************************
  76. ;; PROCEDURE CALLS
  77. ;;
  78.  
  79. ;;______________________________________________________________
  80. [resetLifeVehicles]
  81. ;;
  82.  
  83. SQL1_1 = CALL resetLifeVehicles;
  84.  
  85. Number of Inputs = 0
  86. Prepared Statement Cache = false
  87.  
  88.  
  89. ;;______________________________________________________________
  90. [deleteDeadVehicles]
  91. ;;
  92.  
  93. SQL1_1 = CALL deleteDeadVehicles;
  94.  
  95. Number of Inputs = 0
  96. Prepared Statement Cache = false
  97.  
  98.  
  99. ;;______________________________________________________________
  100. [deleteOldHouses]
  101. ;;
  102.  
  103. SQL1_1 = CALL deleteOldHouses;
  104.  
  105. Number of Inputs = 0
  106. Prepared Statement Cache = false
  107.  
  108.  
  109. ;;______________________________________________________________
  110. [deleteOldGangs]
  111. ;;
  112.  
  113. SQL1_1 = CALL deleteOldGangs;
  114.  
  115. Number of Inputs = 0
  116. Prepared Statement Cache = false
  117.  
  118.  
  119.  
  120. ;;**************************************************************
  121. ;;**************************************************************
  122. ;; GANGS
  123. ;;
  124.  
  125.  
  126. ;;______________________________________________________________
  127. [gangIDPlayer]
  128. ;;
  129.  
  130. SQL1_1 = SELECT id FROM gangs WHERE members LIKE ? AND active='1';
  131.  
  132. Number of Inputs = 1
  133. SQL1_INPUTS = 1
  134.  
  135.  
  136. ;;______________________________________________________________
  137. [gangNameSelectID]
  138. ;;
  139.  
  140. SQL1_1 = SELECT id FROM gangs WHERE name=? AND active=?;
  141.  
  142. SQL1_INPUTS = 1, 2
  143. Number of Inputs = 2
  144.  
  145.  
  146. ;;______________________________________________________________
  147. [gangOwnerSelectID]
  148. ;;
  149.  
  150. SQL1_1 = SELECT id FROM gangs WHERE owner=? AND active=?;
  151.  
  152. SQL1_INPUTS = 1, 2
  153. Number of Inputs = 2
  154.  
  155. ;;______________________________________________________________
  156. [gangInsert]
  157. ;;
  158.  
  159. SQL1_1 = INSERT INTO gangs (owner, name, members) VALUES(?,?,?);
  160. SQL1_INPUTS = 1, 2, 3-AltisLifeRPG_Array
  161.  
  162. Number of Inputs = 3
  163.  
  164.  
  165. ;;______________________________________________________________
  166. [gangUpdate]
  167. ;;
  168.  
  169. SQL1_1 = UPDATE gangs SET active=1, owner=?,members=? WHERE id=?;
  170.  
  171. Number of Inputs = 3
  172. SQL1_INPUTS = 1, 2, 3-AltisLifeRPG_Array
  173.  
  174.  
  175. ;;______________________________________________________________
  176. [gangRemove]
  177. ;;
  178.  
  179. SQL1_1 = UPDATE gangs SET active='0' WHERE id=?;
  180. SQL1_INPUTS = 1
  181.  
  182. Number of Inputs = 1
  183.  
  184.  
  185. ;;______________________________________________________________
  186. [gangInfo]
  187. ;; Get Gang Info
  188. ;;
  189.  
  190. SQL1_1 = SELECT id, owner, name, maxmembers, bank, members FROM gangs WHERE active='1' AND members LIKE ?;
  191. SQL1_INPUTS = 1
  192.  
  193. Number of Inputs = 1
  194. OUTPUT = 1, 2-String, 3-String, 4, 5, 6-AltisLifeRPG_Array
  195.  
  196.  
  197. ;;______________________________________________________________
  198. [gangBankInfoUpdate]
  199. ;; Update Gang Bank
  200. ;;
  201.  
  202. SQL1_1 = UPDATE gangs SET bank=? WHERE id=?;
  203. SQL1_INPUTS = 1, 2
  204.  
  205. Number of Inputs = 2
  206.  
  207.  
  208. ;;______________________________________________________________
  209. [gangInfoUpdate]
  210. ;; Update Gang Info
  211. ;;
  212.  
  213. SQL1_1 = UPDATE gangs SET bank=?, maxmembers=?, owner=? WHERE id=?;
  214. SQL1_INPUTS = 1, 2, 3-String, 4
  215.  
  216. Number of Inputs = 4
  217.  
  218.  
  219. ;;______________________________________________________________
  220. [gangMaxMembersUpdate]
  221. ;; Update Gang Max Members
  222. ;;
  223.  
  224. SQL1_1 = UPDATE gangs SET maxmembers=? WHERE id=?;
  225. SQL1_INPUTS = 1, 2
  226.  
  227. Number of Inputs = 2
  228.  
  229.  
  230. ;;______________________________________________________________
  231. [gangMembersUpdate]
  232. ;; Update Gang Members
  233. ;;
  234.  
  235. SQL1_1 = UPDATE gangs SET members=? WHERE id=?;
  236. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  237.  
  238. Number of Inputs = 2
  239.  
  240.  
  241. ;;______________________________________________________________
  242. [gangOwnerUpdate]
  243. ;; Update Gang Owner
  244. ;;
  245.  
  246. SQL1_1 = UPDATE gangs SET owner=? WHERE id=?;
  247. SQL1_INPUTS = 1,2
  248.  
  249. Number of Inputs = 2
  250.  
  251.  
  252. ;;**************************************************************
  253. ;;**************************************************************
  254. ;; PLAYERS
  255. ;;
  256.  
  257. ;;______________________________________________________________
  258. [playerInfo]
  259. ;;
  260.  
  261. SQL1_1 = SELECT playerid, name FROM players WHERE playerid=?;
  262. SQL1_INPUTS = 1
  263.  
  264. Number of Inputs = 1
  265. OUTPUT = 1, 2
  266.  
  267. ;;______________________________________________________________
  268. [playerInfoInsert]
  269. ;;
  270.  
  271. SQL1_1 = INSERT INTO players
  272. ;; 1 2 3 4 5 6 7 8 9 10 11
  273. SQL1_2 = (playerid, name, cash, bankacc, aliases, cop_licenses, med_licenses, civ_licenses, civ_gear, cop_gear, med_gear)
  274. SQL1_3 = VALUES(?,?,?,?,?,?,?,?,?,?,?)
  275.  
  276. SQL1_INPUTS = 1, 2-STRING, 3, 4, 5, 6, 7, 8, 9, 10, 11
  277.  
  278. Number of Inputs = 11
  279.  
  280. ;;______________________________________________________________
  281. [playerWestInfo]
  282. ;;
  283. 1 2 3 4 5 6 7 8 9 10
  284. SQL1_1 = SELECT playerid, name, cash, bankacc, adminlevel, donatorlvl, cop_licenses, coplevel, cop_gear, blacklist FROM players WHERE playerid=?;
  285. SQL1_INPUTS = 1
  286.  
  287. Number of Inputs = 1
  288. OUTPUT = 1-String, 2-String, 3, 4, 5-String, 6-String, 7-AltisLifeRPG_Array, 8-String, 9-AltisLifeRPG_Array, 10
  289.  
  290. ;;______________________________________________________________
  291. [playerCivInfo]
  292. ;;
  293. ;; 1 2 3 4 5 6 7 8 9
  294. SQL1_1 = SELECT playerid, name, cash, bankacc, adminlevel, donatorlvl, civ_licenses, arrested, civ_gear FROM players WHERE playerid=?;
  295. SQL1_INPUTS = 1
  296.  
  297. Number of Inputs = 1
  298. OUTPUT = 1-String, 2-String, 3, 4, 5-String, 6-String, 7-AltisLifeRPG_Array, 8-String, 9-AltisLifeRPG_Array
  299.  
  300. ;;______________________________________________________________
  301. [playerIndependentInfo]
  302. ;;
  303. 1 2 3 4 5 6 7 8 9
  304. SQL1_1 = SELECT playerid, name, cash, bankacc, adminlevel, donatorlvl, med_licenses, mediclevel, med_gear FROM players WHERE playerid=?;
  305. SQL1_INPUTS = 1
  306.  
  307. Number of Inputs = 1
  308. OUTPUT = 1-String, 2-String, 3, 4, 5-String, 6-String, 7-AltisLifeRPG_Array, 8-String, 9-AltisLifeRPG_Array
  309.  
  310. ;;______________________________________________________________
  311. [playerWestUpdate]
  312. ;;
  313.  
  314. SQL1_1 = UPDATE players
  315. ;; 1 2 3 4 5 6
  316. SQL1_2 = SET name=?, cash=?, bankacc=?, cop_gear=?, cop_licenses=? WHERE playerid=?
  317.  
  318. SQL1_INPUTS = 1, 2, 3, 4-AltisLifeRPG_Array, 5-AltisLifeRPG_Array, 6
  319.  
  320. Number of Inputs = 6
  321.  
  322.  
  323. ;;______________________________________________________________
  324. [playerCivilianUpdate]
  325. ;;
  326.  
  327. SQL1_1 = UPDATE players
  328. ;; 1 2 3 4 5 6 7
  329. SQL1_2 = SET name=?, cash=?, bankacc=?, civ_licenses=?, civ_gear=?, arrested=? WHERE playerid=?;
  330.  
  331. SQL1_INPUTS = 1, 2, 3, 4-AltisLifeRPG_Array, 5-AltisLifeRPG_Array, 6, 7
  332.  
  333. Number of Inputs = 7
  334.  
  335.  
  336. ;;______________________________________________________________
  337. [playerIndependentUpdate]
  338. ;;
  339.  
  340. SQL1_1 = UPDATE players
  341. ;; 1 2 3 4 5 6
  342. SQL1_2 = SET name=?, cash=?, bankacc=?, med_licenses=?, med_gear=?, WHERE playerid=?;
  343.  
  344. SQL1_INPUTS = 1, 2, 3, 4-AltisLifeRPG_Array, 5-AltisLifeRPG_Array, 6
  345.  
  346. Number of Inputs = 6
  347.  
  348.  
  349. ;;______________________________________________________________
  350. [playerUpdateCash]
  351. ;;
  352.  
  353. SQL1_1 = UPDATE players
  354. SQL1_2 = SET cash=? WHERE playerid=?;
  355.  
  356. SQL1_INPUTS = 1, 2
  357. Number of Inputs = 2
  358.  
  359.  
  360. ;;______________________________________________________________
  361. [playerUpdateBank]
  362. ;;
  363.  
  364. SQL1_1 = UPDATE players
  365. SQL1_2 = SET bankacc=? WHERE playerid=?;
  366.  
  367. SQL1_INPUTS = 1, 2
  368. Number of Inputs = 2
  369.  
  370.  
  371. ;;______________________________________________________________
  372. [playerUpdateBank+Cash]
  373. ;;
  374.  
  375. SQL1_1 = UPDATE players
  376. SQL1_2 = SET cash=?, bankacc=? WHERE playerid=?;
  377.  
  378. SQL1_INPUTS = 1, 2, 3
  379. Number of Inputs = 3
  380.  
  381.  
  382. ;;______________________________________________________________
  383. [playerUpdateCopLicense]
  384. ;;
  385.  
  386. SQL1_1 = UPDATE players
  387. SQL1_2 = SET cop_licenses=? WHERE playerid=?;
  388.  
  389. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  390. Number of Inputs = 2
  391.  
  392.  
  393. ;;______________________________________________________________
  394. [playerUpdateCivLicense]
  395. ;;
  396.  
  397. SQL1_1 = UPDATE players
  398. SQL1_2 = SET civ_licenses=? WHERE playerid=?;
  399.  
  400. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  401. Number of Inputs = 2
  402.  
  403.  
  404. ;;______________________________________________________________
  405. [playerUpdateMedLicense]
  406. ;;
  407.  
  408. SQL1_1 = UPDATE players
  409. SQL1_2 = SET med_licenses=? WHERE playerid=?;
  410.  
  411. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  412. Number of Inputs = 2
  413.  
  414.  
  415. ;;______________________________________________________________
  416. [playerUpdateCopGear]
  417. ;;
  418.  
  419. SQL1_1 = UPDATE players
  420. SQL1_2 = SET cop_gear=? WHERE playerid=?;
  421.  
  422. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  423. Number of Inputs = 2
  424.  
  425.  
  426. ;;______________________________________________________________
  427. [playerUpdateCivGear]
  428. ;;
  429.  
  430. SQL1_1 = UPDATE players
  431. SQL1_2 = SET civ_gear=? WHERE playerid=?;
  432.  
  433. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  434. Number of Inputs = 2
  435.  
  436.  
  437. ;;______________________________________________________________
  438. [playerUpdateMedGear]
  439. ;;
  440.  
  441. SQL1_1 = UPDATE players
  442. SQL1_2 = SET med_gear=? WHERE playerid=?;
  443.  
  444. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  445. Number of Inputs = 2
  446.  
  447.  
  448. ;;______________________________________________________________
  449. [playerUpdateAlive]
  450. ;;
  451.  
  452. SQL1_1 = UPDATE players
  453. SQL1_2 = SET alive=? WHERE playerid=?;
  454.  
  455. SQL1_INPUTS = 1, 2
  456. Number of Inputs = 2
  457.  
  458.  
  459. ;;______________________________________________________________
  460. [playerUpdateArrested]
  461. ;;
  462.  
  463. SQL1_1 = UPDATE players
  464. SQL1_2 = SET arrested=? WHERE playerid=?;
  465.  
  466. SQL1_INPUTS = 1, 2
  467. Number of Inputs = 2
  468.  
  469.  
  470. ;;**************************************************************
  471. ;;**************************************************************
  472. ;; VEHICLES
  473. ;;
  474.  
  475. ;;______________________________________________________________
  476. [vehicleDead]
  477. ;;
  478.  
  479. SQL1_1 = UPDATE vehicles SET alive=? WHERE pid=? AND plate=?;
  480.  
  481. SQL1_INPUTS = 1, 2, 3
  482. Number of Inputs = 3
  483.  
  484. ;;______________________________________________________________
  485. [vehicleInsert]
  486. ;;
  487.  
  488. SQL1_1 = INSERT INTO vehicles
  489. ;; 1 2 3 4 5 6 7 8 9
  490. SQL1_2 = (side, classname, type, pid, alive, active, inventory, color, plate)
  491. SQL1_3 = VALUES (?,?,?,?,?,?,?,?,?);
  492.  
  493. SQL1_INPUTS = 1, 2, 3, 4, 5, 6, 7-AltisLifeRPG_Array, 8, 9
  494. Number of Inputs = 9
  495.  
  496.  
  497. ;;______________________________________________________________
  498. [vehicleInfo]
  499. ;;
  500.  
  501. ;; 1 2 3 4 5 6 7 8 9
  502. SQL1_1 = SELECT id, side, classname, type, pid, alive, active, plate, color
  503. SQL1_2 = FROM vehicles WHERE id=? AND pid=?;
  504. SQL1_INPUTS = 1, 2
  505. Number of Inputs = 2
  506.  
  507. OUTPUT = 1, 2-String, 3-String, 4-String, 5-String, 6, 7, 8, 9
  508.  
  509.  
  510. ;;______________________________________________________________
  511. [vehiclesInfo]
  512. ;;
  513.  
  514. ;; 1 2 3 4 5 6 7 8 9
  515. SQL1_1 = SELECT id, side, classname, type, pid, alive, active, plate, color
  516. SQL1_2 = FROM vehicles WHERE pid=? AND alive=1 AND active = 0 AND side=? AND type=?;
  517. SQL1_INPUTS = 1, 2, 3
  518. Number of Inputs = 3
  519.  
  520. OUTPUT = 1, 2-String, 3-String, 4-String, 5-String, 6, 7, 8, 9
  521.  
  522.  
  523. ;;______________________________________________________________
  524. [vehicleUpdateActive]
  525. ;;
  526.  
  527. SQL1_1 = UPDATE vehicles SET active=? WHERE pid=? AND id=?;
  528.  
  529. SQL1_INPUTS = 1, 2, 3
  530. Number of Inputs = 3
  531.  
  532.  
  533. ;;______________________________________________________________
  534. [vehicleUpdateActivePlate]
  535. ;;
  536.  
  537. SQL1_1 = UPDATE vehicles SET active=? WHERE pid=? AND plate=?;
  538.  
  539. SQL1_INPUTS = 1, 2, 3
  540. Number of Inputs = 3
  541.  
  542.  
  543.  
  544. ;;______________________________________________________________
  545. [vehicleUpdateAlive]
  546. ;;
  547.  
  548. SQL1_1 = UPDATE vehicles SET alive=? WHERE pid=? AND id=?;
  549.  
  550. SQL1_INPUTS = 1, 2, 3
  551. Number of Inputs = 3
  552.  
  553.  
  554. ;;______________________________________________________________
  555. [vehicleUpdateAlivePlate]
  556. ;;
  557.  
  558. SQL1_1 = UPDATE vehicles SET alive=? WHERE pid=? AND plate=?;
  559.  
  560. SQL1_INPUTS = 1, 2, 3
  561. Number of Inputs = 3
  562.  
  563. ;;**************************************************************
  564. ;;**************************************************************
  565. ;; Wanted System
  566. ;;
  567.  
  568.  
  569. ;;______________________________________________________________
  570. [housingCount]
  571. ;;
  572.  
  573. SQL1_1 = SELECT COUNT(*) FROM houses WHERE owned='1';
  574.  
  575. Number of Inputs = 0
  576.  
  577. ;;______________________________________________________________
  578. [housingInit]
  579. ;;
  580.  
  581. SQL1_1 = SELECT houses.id, houses.pid, houses.pos, players.name FROM houses INNER JOIN players ON houses.pid=players.playerid WHERE houses.owned='1' LIMIT ?,10;
  582.  
  583. SQL1_INPUTS = 1
  584. Number of Inputs = 1
  585.  
  586. OUTPUT = 1, 2-String, 3-String, 4-String
  587.  
  588. ;;______________________________________________________________
  589. [housingFetchPlayerHouse]
  590. ;;
  591. SQL1_1 = SELECT pid, pos, inventory, containers FROM houses WHERE pid=? AND owned='1';
  592.  
  593. SQL1_INPUTS = 1
  594. Number of Inputs = 1
  595.  
  596. OUTPUT = 1-String, 2-String, 3-AltisLifeRPG_Array, 4-AltisLifeRPG_Array
  597.  
  598. ;;______________________________________________________________
  599. [housingCheckHouse]
  600. ;;
  601. SQL_1 = SELECT id FROM houses WHERE pos=? AND owned='1';
  602.  
  603. SQL1_INPUTS = 1
  604. Number of Inputs = 1
  605.  
  606. OUTPUT = 1
  607.  
  608. ;;______________________________________________________________
  609. [housingAddHouse]
  610. ;;
  611. SQL1_1 = INSERT INTO houses (pid, pos, inventory, containers, owned)
  612. SQL1_2 = VALUES(?,?,?,?,?);
  613. SQL1_INPUTS = 1, 2, 3-AltisLifeRPG_Array, 4-AltisLifeRPG_Array, 5
  614. SQL2_1 = SELECT id FROM houses WHERE pos=? AND pid=? AND owned='1';
  615. SQL2_INPUTS = 2, 1
  616.  
  617. Number of Inputs = 5
  618. OUTPUT = 1
  619.  
  620. ;;______________________________________________________________
  621. [housingSellHouse]
  622. ;;
  623. SQL1_1 = UPDATE houses SET owned='0', pos='[]' WHERE pid=? AND pos=? AND owned='1';
  624. SQL1_INPUTS = 1, 2, 3
  625.  
  626. Number of Inputs = 3
  627.  
  628. ;;______________________________________________________________
  629. [housingSellHouse2]
  630. ;;
  631. SQL1_1 = UPDATE houses SET owned='0', pos='[]' WHERE id=?;
  632. SQL1_INPUTS = 1
  633.  
  634. Number of Inputs = 1
  635.  
  636. ;;______________________________________________________________
  637. [houseUpdateContainer]
  638. ;;
  639. SQL1_1 = UPDATE houses SET containers=? WHERE id=?;
  640. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  641.  
  642. Number of Inputs = 2
  643.  
  644. ;;______________________________________________________________
  645. [housingUpdateInventory]
  646. ;;
  647. SQL1_1 = UPDATE houses SET inventory=? WHERE id=?;
  648. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2
  649.  
  650. Number of Inputs = 2
  651.  
  652. ;;______________________________________________________________
  653. [housingCleanup]
  654. ;;
  655. SQL1_1 = SELECT pid, pos, inventory, containers FROM houses WHERE pid=? AND owned='1';
  656. SQL1_INPUTS = 1
  657.  
  658. Number of Inputs = 1
  659.  
  660. ;;**************************************************************
  661. ;;**************************************************************
  662. ;; Wanted System
  663. ;;
  664.  
  665.  
  666. ;;______________________________________________________________
  667. [wantedGetCrimes]
  668. ;;
  669.  
  670. SQL1_1 = SELECT wantedID, wantedCrimes FROM wanted WHERE wantedID=?;
  671.  
  672. SQL1_INPUTS = 1
  673. Number of Inputs = 1
  674.  
  675. OUTPUT = 1-String, 2-AltisLifeRPG_Array
  676.  
  677. ;;______________________________________________________________
  678. [wantedUpdateCrimes]
  679. ;;
  680.  
  681. SQL1_1 = UPDATE wanted SET wantedCrimes = ?, wantedBounty = wantedBounty + ?, active = '1' WHERE wantedID=?;
  682. SQL1_INPUTS = 1-AltisLifeRPG_Array, 2, 3
  683.  
  684. Number of Inputs = 3
  685.  
  686. ;;______________________________________________________________
  687. [wantedInsertCrimes]
  688. ;;
  689.  
  690. SQL1_1 = INSERT INTO wanted (wantedID, wantedName, wantedCrimes, wantedBounty, active)
  691. SQL1_2 = VALUES(?,?,?,?,?);
  692.  
  693. SQL1_INPUTS = 1, 2, 3, 4-AltisLifeRPG_Array, 5
  694.  
  695. Number of Inputs = 5
  696.  
  697. ;;______________________________________________________________
  698. [wantedFetchBounty]
  699. ;;
  700.  
  701. SQL1_1 = SELECT wantedID, wantedName, wantedCrimes, wantedBounty FROM wanted WHERE active='1' AND wantedID=?;
  702. SQL1_INPUTS = 1
  703.  
  704. Number of Inputs = 1
  705.  
  706. OUTPUT = 1-String, 2-String, 3-AltisLifeRPG_Array, 4
  707.  
  708. ;;______________________________________________________________
  709. [wantedFetchCrimes]
  710. ;;
  711.  
  712. SQL1_1 = SELECT wantedCrimes, wantedBounty FROM wanted WHERE active='1' AND wantedID=?;
  713. SQL1_INPUTS = 1
  714.  
  715. Number of Inputs = 1
  716. OUTPUT = 1-AltisLifeRPG_Array, 2
  717.  
  718. ;;______________________________________________________________
  719. [wantedFetchID]
  720. ;;
  721.  
  722. SQL1_1 = SELECT wantedID, wantedName FROM wanted WHERE active='1' AND wantedID in (?);
  723. SQL1_INPUTS = 1-STRIP
  724.  
  725. Number of Inputs = 1
  726. OUTPUT = 1-String, 2-String
  727.  
  728. ;;______________________________________________________________
  729. [wantedFetchPerson]
  730. ;;
  731.  
  732. SQL1_1 = SELECT wantedID, wantedName, wantedBounty FROM wanted WHERE wantedID=? AND active='1';
  733. SQL1_INPUTS = 1
  734.  
  735. Number of Inputs = 1
  736. OUTPUT = 1-String, 2-String, 3
  737.  
  738. ;;______________________________________________________________
  739. [wantedFetchName]
  740. ;;
  741.  
  742. SQL1_1 = SELECT wantedName FROM wanted WHERE wantedID=?;
  743. SQL1_INPUTS = 1
  744.  
  745. Number of Inputs = 1
  746. OUTPUT = 1-String
  747.  
  748. ;;______________________________________________________________
  749. [wantedUpdateName]
  750. ;;
  751.  
  752. SQL1_1 = UPDATE wanted SET wantedName=? WHERE wantedID=?;
  753. SQL1_INPUTS = 1,2
  754.  
  755. Number of Inputs = 2
  756.  
  757. ;;______________________________________________________________
  758. [wantedRemoveCrimes]
  759. ;;
  760.  
  761. SQL1_1 = UPDATE wanted SET active = 0, wantedCrimes = '[]', wantedBounty = 0 WHERE wantedID=?;
  762. SQL1_INPUTS = 1
  763.  
  764. Number of Inputs = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement