Guest User

Untitled

a guest
Apr 22nd, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 17.01 KB | None | 0 0
  1. [Default]
  2.  
  3. Version = 1
  4. ;; Used incase there is ever a breaking change, or to inform user in log about a new feature.
  5.  
  6. Strip Chars = ";[]"
  7. ;; List of characters to strip out
  8. Strip Chars Mode = 0
  9. ;; 0 = Strip Bad Chars, 1 = Strip + Log Bad Chars, 2 = Return Error & Log Bad Chars
  10. ;;     Note: Logging on works when sending data to database.
  11.  
  12. Input SQF Parser = false
  13. ;; Expermential
  14. ;;   If enabled will use SQF Array Parser instead of : seperator for values
  15. ;;   i.e   0:SQL:UpdatePlayer:["Joe",[1,2,0],0.22333,"PlayerBackpack",-3]
  16. ;;   Advantage is that you don't need to strip : seperator from user inputted values
  17.  
  18.  
  19. ;; Löschung alter Fahrzeuge/Sachen
  20. [resetLifeVehicles]
  21. SQL1_1 = CALL resetLifeVehicles
  22.  
  23. [deleteOldHouses]
  24. SQL1_1 = CALL deleteOldHouses
  25.  
  26. [deleteDeadVehicles]
  27. SQL1_1 = CALL deleteDeadVehicles
  28.  
  29. [deleteOldGangs]
  30. SQL1_1 = CALL deleteOldGangs
  31.  
  32. [deleteOldContainers]
  33. SQL1_1 = CALL deleteOldContainers
  34.  
  35.  
  36. ;; Erste anmeldung des Spielers
  37. [checkPlayerExists]
  38. SQL1_1 = SELECT pid, name FROM players WHERE pid = ?
  39. SQL1_INPUTS = 1-STRING
  40. OUTPUT = 1-STRING, 2-STRING
  41.  
  42. [selectName]
  43. SQL1_1 = SELECT name FROM players WHERE pid = ?
  44. SQL1_INPUTS = 1-STRING
  45. OUTPUT = 1-STRING
  46.  
  47. [insertNewPlayer]
  48. SQL1_1 = INSERT INTO players (pid, name, cash, bankacc, aliases, cop_licenses, med_licenses, civ_licenses, civ_gear, cop_gear, med_gear, adac_gear, adac_licenses) VALUES (?, ?, ?, ?, ?,'"[]"','"[]"','"[]"','"[]"','"[]"','"[]"','"[]"','"[]"')
  49. SQL1_INPUTS = 1, 2, 3, 4, 5
  50.  
  51.  
  52. ;; Polizei Sachen
  53. ;;--------------------------------------------------------------------------------------------------------------->
  54. ;; Select Cop Stats
  55. [selectWest]
  56. SQL1_1 = SELECT pid, name, cash, bankacc, adminlevel, donorlevel, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime, idcard_data_cop FROM players WHERE pid = ?
  57. SQL1_INPUTS = 1
  58. OUTPUT = 1-STRING, 2-STRING, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
  59. ;; Update Cop Stats
  60. [updateWest]
  61. SQL1_1 = UPDATE players SET name = ?, cash = ?, bankacc = ?, cop_gear = ?, cop_licenses = ?, cop_stats = ?, playtime = ? WHERE pid = ?
  62. SQL1_INPUTS = 1, 2, 3, 4, 5, 6, 7, 8
  63. ;; Cop Lizenz
  64. [updateWestLicenses]
  65. SQL1_1 = UPDATE players SET cop_licenses = ? WHERE pid = ?
  66. SQL1_INPUTS = 1, 2
  67. ;; Update Cop Gear
  68. [updateWestGear]
  69. SQL1_1 = UPDATE players SET cop_gear = ? WHERE pid = ?
  70. SQL1_INPUTS = 1, 2
  71. ;; Zivilisten Sachen
  72. ;;--------------------------------------------------------------------------------------------------------------->
  73. ;; Select Civ Stats
  74. [selectCiv]
  75. SQL1_1 = SELECT pid, name, cash, bankacc, adminlevel, donorlevel, civ_licenses, arrested, civ_gear, civ_stats, civ_alive, civ_position, playtime, idcard_data_civ FROM players WHERE pid = ?
  76. SQL1_INPUTS = 1
  77. OUTPUT = 1-STRING, 2-STRING, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
  78. ;; Update Civ Stats
  79. [updateCiv]
  80. SQL1_1 = UPDATE players SET name = ?, cash = ?, bankacc = ?, civ_licenses = ?, civ_gear = ?, arrested = ?, civ_stats = ?, civ_alive = ?, civ_position = ?, playtime = ? WHERE pid = ?
  81. SQL1_INPUTS = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
  82. ;; Civ Lizenz
  83. [updateCivLicenses]
  84. SQL1_1 = UPDATE players SET civ_licenses = ? WHERE pid = ?
  85. SQL1_INPUTS = 1, 2
  86. ;; Update civ gear
  87. [updateCivGear]
  88. SQL1_1 = UPDATE players SET civ_gear = ? WHERE pid = ?
  89. SQL1_INPUTS = 1, 2
  90. ;; Civ position
  91. [updateCivPosition]
  92. SQL1_1 = UPDATE players SET civ_alive = ?, civ_position = ? WHERE pid = ?
  93. SQL1_INPUTS = 1, 2, 3
  94. ;; civ alive or not
  95. [updateCivAlive]
  96. SQL1_1 = UPDATE players SET civ_alive = '0' WHERE civ_alive = '1'
  97. ;; Artz Sachen
  98. ;;--------------------------------------------------------------------------------------------------------------->
  99. ;; Select Artz stats
  100. [selectIndep]
  101. SQL1_1 = SELECT pid, name, cash, bankacc, adminlevel, donorlevel, med_licenses, mediclevel, med_gear, med_stats, playtime, idcard_data_med FROM players WHERE pid = ?
  102. SQL1_INPUTS = 1
  103. OUTPUT = 1-STRING, 2-STRING, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
  104. ;; Update Artz stats
  105. [updateIndep]
  106. SQL1_1 = UPDATE players SET name = ?, cash = ?, bankacc = ?, med_licenses = ?, med_gear = ?, med_stats = ?, playtime = ? WHERE pid = ?
  107. SQL1_INPUTS = 1, 2, 3, 4, 5, 6, 7, 8
  108. ;; Artz Lizenz
  109. [updateIndepLicenses]
  110. SQL1_1 = UPDATE players SET med_licenses = ? WHERE pid = ?
  111. SQL1_INPUTS = 1, 2
  112. ;; Update Artz gear
  113. [updateIndepGear]
  114. SQL1_1 = UPDATE players SET med_gear = ? WHERE pid = ?
  115. SQL1_INPUTS = 1, 2
  116. ;; ADAC Sachen
  117. ;;--------------------------------------------------------------------------------------------------------------->
  118. ;; Select ADAC stats
  119. [selectEast]
  120. SQL1_1 = SELECT pid, name, cash, bankacc, adminlevel, donorlevel, adac_licenses, adaclevel, adac_gear, adac_stats, playtime, idcard_data_adac FROM players WHERE pid = ?
  121. SQL1_INPUTS = 1
  122. OUTPUT = 1-STRING, 2-STRING, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
  123. ;; Update ADAC stats
  124. [updateEast]
  125. SQL1_1 = UPDATE players SET name = ?, cash = ?, bankacc = ?, adac_licenses = ?, adac_gear = ?, adac_stats = ?, playtime = ? WHERE pid = ?
  126. SQL1_INPUTS = 1, 2, 3, 4, 5, 6, 7, 8
  127. ;; ADAC Lizenz
  128. [updateEastLicenses]
  129. SQL1_1 = UPDATE players SET adac_licenses = ? WHERE pid = ?
  130. SQL1_INPUTS = 1, 2
  131. ;; Update ADAC gear
  132. [updateEastGear]
  133. SQL1_1 = UPDATE players SET adac_gear = ? WHERE pid = ?
  134. SQL1_INPUTS = 1, 2
  135. ;;--------------------------------------------------------------------------------------------------------------->
  136.  
  137. ;;--------------------------------------------------------------------------------------------------------------->
  138. ;; Cash Update
  139. [updateCash]
  140. SQL1_1 = UPDATE players SET cash = ? WHERE pid = ?
  141. SQL1_INPUTS = 1, 2
  142. ;; Bank Update
  143. [updateBank]
  144. SQL1_1 = UPDATE players SET bankacc = ? WHERE pid = ?
  145. SQL1_INPUTS = 1, 2
  146. ;; Update cash & Bank
  147. [updateCashAndBank]
  148. SQL1_1 = UPDATE players SET cash = ?, bankacc = ? WHERE pid = ?
  149. SQL1_INPUTS = 1, 2, 3
  150. ;;--------------------------------------------------------------------------------------------------------------->
  151.  
  152.  
  153.  
  154.  
  155. ;;--------------------------------------------------------------------------------------------------------------->
  156. ;; Wanted
  157. [updateArrested]
  158. SQL1_1 = UPDATE players SET arrested = ? WHERE pid = ?
  159. SQL1_INPUTS = 1, 2
  160.  
  161. [selectWanted]
  162. SQL1_1 = SELECT wantedID, wantedName, wantedCrimes, wantedBounty FROM wanted WHERE active = '1' AND wantedID = ?
  163. SQL1_INPUTS = 1
  164. OUTPUT = 1-STRING, 2-STRING, 3, 4
  165.  
  166. [selectWantedID]
  167. SQL1_1 = SELECT wantedID FROM wanted WHERE wantedID = ?
  168. SQL1_INPUTS = 1
  169. OUTPUT = 1-STRING
  170.  
  171. [selectWantedCrimes]
  172. SQL1_1 = SELECT wantedCrimes, wantedBounty FROM wanted WHERE wantedID = ?
  173. SQL1_INPUTS = 1
  174.  
  175. [selectWantedActive]
  176. SQL1_1 = SELECT wantedCrimes, wantedBounty FROM wanted WHERE active = '1' AND wantedID = ?
  177. SQL1_INPUTS = 1
  178.  
  179. [selectWantedActiveID]
  180. SQL1_1 = SELECT wantedID, wantedName FROM wanted WHERE active = '1' AND wantedID in (?)
  181. SQL1_INPUTS = 1
  182. OUTPUT = 1-STRING, 2-STRING
  183.  
  184. [selectWantedBounty]
  185. SQL1_1 = SELECT wantedID, wantedName, wantedBounty FROM wanted WHERE active = '1' AND wantedID = ?
  186. SQL1_INPUTS = 1
  187. OUTPUT = 1-STRING, 2-STRING, 3
  188.  
  189. [selectWantedName]
  190. SQL1_1 = SELECT wantedName FROM wanted WHERE wantedID = ?
  191. SQL1_INPUTS = 1
  192. OUTPUT = 1-STRING
  193.  
  194. [insertWanted]
  195. SQL1_1 = INSERT INTO wanted (wantedID, wantedName, wantedCrimes, wantedBounty, active) VALUES (?, ?, ?, ?, '1')
  196. SQL1_INPUTS = 1, 2, 3, 4
  197.  
  198. [updateWanted]
  199. SQL1_1 = UPDATE wanted SET wantedCrimes = ?, wantedBounty = wantedBounty + ?, active = '1' WHERE wantedID = ?
  200. SQL1_INPUTS = 1, 2, 3
  201.  
  202. [updateWantedName]
  203. SQL1_1 = UPDATE wanted SET wantedName = ? WHERE wantedID = ?
  204. SQL1_INPUTS = 1, 2
  205.  
  206. [deleteWanted]
  207. SQL1_1 = UPDATE wanted SET active = '0', wantedCrimes = '[]', wantedBounty = 0 WHERE wantedID = ?
  208. SQL1_INPUTS = 1
  209. ;;--------------------------------------------------------------------------------------------------------------->
  210.  
  211.  
  212.  
  213. ;;--------------------------------------------------------------------------------------------------------------->
  214. ;; Gang Sachen
  215. [selectGang]
  216. SQL1_1 = SELECT id FROM gangs WHERE active = '1' AND id = ?
  217. SQL1_INPUTS = 1
  218.  
  219. [selectPlayerGang]
  220. SQL1_1 = SELECT id, owner, name, maxmembers, bank, members, gangtag FROM gangs WHERE active = '1' AND members LIKE ?
  221. SQL1_INPUTS = 1
  222. OUTPUT = 1, 2-STRING, 3-STRING, 4, 5, 6, 7-STRING
  223.  
  224. [selectGangID]
  225. SQL1_1 = SELECT id FROM gangs WHERE name = ? OR gangtag = ? AND active = '1'
  226. SQL1_INPUTS = 1, 2
  227.  
  228. [selectGangIDFromMembers]
  229. SQL1_1 = SELECT id FROM gangs WHERE members LIKE ? AND active = '1'
  230. SQL1_INPUTS = 1
  231.  
  232. [selectGangIDFromOwner]
  233. SQL1_1 = SELECT id FROM gangs WHERE owner = ? AND active = '1'
  234. SQL1_INPUTS = 1
  235.  
  236. [selectInactiveGang]
  237. SQL1_1 = SELECT id, active FROM gangs WHERE name = ? OR gangtag = ? AND active = '0'
  238. SQL1_INPUTS = 1, 2
  239.  
  240. [updateGang]
  241. SQL1_1 = UPDATE gangs SET active = '1', owner = ?, members = ?, name = ?, gangtag = ? WHERE id = ?
  242. SQL1_INPUTS = 1, 2, 3, 4, 5
  243.  
  244. [updateGang1]
  245. SQL1_1 = UPDATE gangs SET bank = ?, maxmembers = ?, owner = ? WHERE id = ?
  246. SQL1_INPUTS = 1, 2, 3, 4
  247.  
  248. [updateGangBank]
  249. SQL1_1 = UPDATE gangs SET bank = ? WHERE id = ?
  250. SQL1_INPUTS = 1, 2
  251.  
  252. [updateGangMembers]
  253. SQL1_1 = UPDATE gangs SET members = ? WHERE id = ?
  254. SQL1_INPUTS = 1, 2
  255.  
  256. [updateGangMaxmembers]
  257. SQL1_1 = UPDATE gangs SET maxmembers = ? WHERE id = ?
  258. SQL1_INPUTS = 1, 2
  259.  
  260. [updateGangOwner]
  261. SQL1_1 = UPDATE gangs SET owner = ? WHERE id = ?
  262. SQL1_INPUTS = 1, 2
  263.  
  264. [insertGang]
  265. SQL1_1 = INSERT INTO gangs (owner, name, members, gangtag) VALUES (?, ?, ?, ?)
  266. SQL1_INPUTS = 1, 2, 3, 4
  267.  
  268. [deleteGang]
  269. SQL1_1 = UPDATE gangs SET active = '0' WHERE id = ?
  270. SQL1_INPUTS = 1
  271. ;;--------------------------------------------------------------------------------------------------------------->
  272.  
  273. ;;--------------------------------------------------------------------------------------------------------------->
  274. ;; Housing
  275. [insertHouse]
  276. SQL1_1 = INSERT INTO houses (pid, pos, owned) VALUES (?, ?, '1')
  277. SQL1_INPUTS = 1, 2-STRING
  278.  
  279. [selectHouseID]
  280. SQL1_1 = SELECT id FROM houses WHERE pos = ? AND pid = ? AND owned = '1'
  281. SQL1_INPUTS = 1, 2
  282.  
  283. [selectAllHouses]
  284. SQL1_1 = SELECT COUNT(*) FROM houses WHERE owned = '1'
  285.  
  286. [selectPlayerHouses]
  287. SQL1_1 = SELECT houses.id, houses.pid, houses.pos, players.name, houses.garage FROM houses INNER JOIN players WHERE houses.owned = '1' AND houses.pid = players.pid LIMIT ?, 10
  288. SQL1_INPUTS = 1
  289. OUTPUT = 1, 2-STRING, 3, 4-STRING, 5
  290.  
  291. [selectHousePositions]
  292. SQL1_1 = SELECT pid, pos FROM houses WHERE pid = ? AND owned = '1'
  293. SQL1_INPUTS = 1
  294. OUTPUT = 1-STRING, 2
  295.  
  296. [updateHouseTrunk]
  297. SQL1_1 = UPDATE containers SET inventory = ? WHERE id = ?
  298. SQL1_INPUTS = 1, 2
  299.  
  300. [deleteHouse]
  301. SQL1_1 = UPDATE houses SET owned = '0', pos = '[]' WHERE pid = ? AND pos = ? AND owned = '1'
  302. SQL1_INPUTS = 1, 2
  303.  
  304. [deleteHouse1]
  305. SQL1_1 = UPDATE houses SET owned = '0', pos = '[]' WHERE id = ?
  306. SQL1_INPUTS = 1
  307.  
  308. [updateGarage]
  309. SQL1_1 = UPDATE houses SET garage = ? WHERE pid = ? AND pos = ?
  310. SQL1_INPUTS = 1, 2, 3
  311.  
  312. [selectContainerPositions]
  313. SQL1_1 = SELECT pid, pos FROM containers WHERE pid = ? AND owned = '1'
  314. SQL1_INPUTS = 1
  315. OUTPUT = 1-STRING, 2
  316.  
  317. [selectContainers]
  318. SQL1_1 = SELECT pid, pos, classname, inventory, gear, dir, id FROM containers WHERE pid = ? AND owned = '1'
  319. SQL1_INPUTS = 1
  320. OUTPUT = 1-STRING, 2, 3-STRING, 4, 5, 6, 7
  321.  
  322. [selectContainerID]
  323. SQL1_1 = SELECT id FROM containers WHERE pos = ? AND pid = ? AND owned = '1'
  324. SQL1_INPUTS = 1, 2
  325.  
  326. [insertContainer]
  327. SQL1_1 = INSERT INTO containers (pid, pos, classname, inventory, gear, owned, dir) VALUES (?, ?, ?, '"[[],0]"', '"[]"', '1', ?)
  328. SQL1_INPUTS = 1, 2, 3, 4
  329.  
  330. [updateContainer]
  331. SQL1_1 = UPDATE containers SET gear = ? WHERE id = ?
  332. SQL1_INPUTS = 1, 2
  333.  
  334. [deleteContainer]
  335. SQL1_1 = UPDATE containers SET owned = '0', pos = '[]' WHERE pid = ? AND pos = ? AND owned = '1'
  336. SQL1_INPUTS = 1, 2
  337.  
  338. [deleteContainer1]
  339. SQL1_1 = UPDATE containers SET owned = '0', pos = '[]' WHERE id = ?
  340. SQL1_INPUTS = 1
  341. ;;--------------------------------------------------------------------------------------------------------------->
  342.  
  343. ;;--------------------------------------------------------------------------------------------------------------->
  344. ;; Fahrzeuge
  345. [selectVehicles]
  346. SQL1_1 = SELECT id, side, classname, type, pid, alive, active, plate, color FROM vehicles WHERE pid = ? AND alive = '1' AND active = '0' AND side = ? AND type = ? AND impound = '0'
  347. SQL1_INPUTS = 1, 2, 3
  348. OUTPUT = 1, 2-STRING, 3-STRING, 4-STRING, 5-STRING, 6, 7, 8, 9
  349.  
  350. [selectVehiclesMore]
  351. SQL1_1 = SELECT id, side, classname, type, pid, alive, active, plate, color, inventory, gear, fuel, damage, blacklist, impound FROM vehicles WHERE id = ? AND pid = ?
  352. SQL1_INPUTS = 1, 2
  353. OUTPUT = 1, 2-STRING, 3-STRING, 4-STRING, 5-STRING, 6, 7, 8, 9, 10, 11, 12, 13, 14
  354.  
  355. [updateVehicle]
  356. SQL1_1 = UPDATE vehicles SET active = '1', impound = '0' WHERE pid = ? AND id = ?
  357. SQL1_INPUTS = 1, 2
  358.  
  359. [updateVehicleBlacklist]
  360. SQL1_1 = UPDATE vehicles SET blacklist = '0' WHERE id = ? AND pid = ?
  361. SQL1_INPUTS = 1, 2
  362.  
  363. [updateVehicleBlacklistPlate]
  364. SQL1_1 = UPDATE vehicles SET blacklist = '1' WHERE pid = ? AND plate = ?
  365. SQL1_INPUTS = 1, 2
  366.  
  367. [updateVehicleFuel]
  368. SQL1_1 = UPDATE vehicles SET active = '0', impound = '0', fuel = ?, damage = ? WHERE pid = ? AND plate = ?
  369. SQL1_INPUTS = 1, 2, 3, 4
  370.  
  371. [updateVehicleFuelImpound]
  372. SQL1_1 = UPDATE vehicles SET active = '0', impound = '1', fuel = ?, damage = ? WHERE pid = ? AND plate = ?
  373. SQL1_INPUTS = 1, 2, 3, 4
  374.  
  375. [updateVehicleAll]
  376. SQL1_1 = UPDATE vehicles SET active = '0', impound = '0', inventory = ?, gear = ?, fuel = ?, damage = ? WHERE pid = ? AND plate = ?
  377. SQL1_INPUTS = 1, 2, 3, 4, 5, 6
  378.  
  379. [updateVehicleAllImpound]
  380. SQL1_1 = UPDATE vehicles SET active = '0', impound = '1', inventory = ?, gear = ?, fuel = ?, damage = ? WHERE pid = ? AND plate = ?
  381. SQL1_INPUTS = 1, 2, 3, 4, 5, 6
  382.  
  383. [updateVehicleGear]
  384. SQL1_1 = UPDATE vehicles SET gear = ? WHERE pid = ? AND plate = ?
  385. SQL1_INPUTS = 1, 2, 3
  386.  
  387. [updateVehicleTrunk]
  388. SQL1_1 = UPDATE vehicles SET inventory = ? WHERE pid = ? AND plate = ?
  389. SQL1_INPUTS = 1, 2, 3
  390.  
  391. [insertVehicle]
  392. SQL1_1 = INSERT INTO vehicles (side, classname, type, pid, alive, active, inventory, color, plate, gear, damage,  impound) VALUES (?, ?, ?, ?, '1','1','"[[],0]"', ?, ?,'"[]"','"[]"', '0')
  393. SQL1_INPUTS = 1, 2, 3, 4, 5, 6
  394.  
  395. [deleteVehicle]
  396. SQL1_1 = UPDATE vehicles SET alive = '0' WHERE pid = ? AND plate = ?
  397. SQL1_INPUTS = 1, 2
  398.  
  399. [deleteVehicleID]
  400. SQL1_1 = UPDATE vehicles SET alive = '0' WHERE pid = ? AND id = ?
  401. SQL1_INPUTS = 1, 2
  402.  
  403. [cleanupVehicle]
  404. SQL1_1 = UPDATE vehicles SET active = '0', fuel = ? WHERE pid = ? AND plate = ?
  405. SQL1_INPUTS = 1, 2, 3
  406. ;;--------------------------------------------------------------------------------------------------------------->
  407.  
  408. ;;--------------------------------------------------------------------------------------------------------------->
  409. ;; Message System
  410. [SelectMSG]
  411. SQL1_1 = SELECT fromID, toID, message, fromName, toName FROM messages WHERE toID = ? ORDER BY time DESC
  412. SQL1_INPUTS = 1
  413. OUTPUT = 1, 2, 3-STRING, 4-STRING, 5-STRING
  414.  
  415. [InsertMSG]
  416. SQL1_1 = INSERT INTO messages (fromID, toID, message, fromName, toName) VALUES(?, ?, '"?"', ?, ?)
  417. SQL1_INPUTS = 1, 2, 3, 4, 5
  418. ;;--------------------------------------------------------------------------------------------------------------->
  419.  
  420. ;;--------------------------------------------------------------------------------------------------------------->
  421. ;;Tuning
  422. [getTuningData]
  423. SQL1_1 = SELECT tuning_data FROM vehicles WHERE id=?;
  424. SQL1_INPUTS = 1 Number of Inputs = 1 Output = 1-String
  425.  
  426. [updateTuningData]
  427. SQL1_1 = UPDATE vehicles SET tuning_data=? WHERE id=?;
  428. SQL1_INPUTS = 1, 2
  429. ;;--------------------------------------------------------------------------------------------------------------->
  430.  
  431. ;;--------------------------------------------------------------------------------------------------------------->
  432. ;;Ausweis
  433. [selectPlayer]
  434. SQL1_1 = SELECT name FROM players WHERE name = ? AND pid = ?
  435. SQL1_INPUTS = 1, 2
  436. OUTPUT = 1-STRING
  437.  
  438. [updateID_CIV]
  439. SQL1_1 = UPDATE players SET idcard_data_civ = ? WHERE pid = ?
  440. SQL1_INPUTS = 1, 2
  441.  
  442. [updateID_WEST]
  443. SQL1_1 = UPDATE players SET idcard_data_cop = ? WHERE pid = ?
  444. SQL1_INPUTS = 1, 2
  445.  
  446. [updateID_MED]
  447. SQL1_1 = UPDATE players SET idcard_data_med = ? WHERE pid = ?
  448. SQL1_INPUTS = 1, 2
  449.  
  450. [updateID_ADAC]
  451. SQL1_1 = UPDATE players SET idcard_data_adac = ? WHERE pid = ?
  452. SQL1_INPUTS = 1, 2
  453. ;;--------------------------------------------------------------------------------------------------------------->
  454.  
  455. ;;--------------------------------------------------------------------------------------------------------------->
  456. ;;Shops
  457. [selectShopDealer]
  458. SQL1_1 = SELECT pid, name, shop, value from shops where shop = ?
  459. SQL1_INPUTS = 1
  460. OUTPUT = 1, 2, 3, 4
  461.  
  462. [selectShopPID]
  463. SQL1_1 = SELECTR pid, name, shop, value from shops where shop = ? and pid = ?
  464. SQL1_INPUTS = 1, 2
  465. OUTPUT = 1, 2, 3, 4
  466.  
  467. [insertShop]
  468. SQL1_1 = INSERT into shops (pid, name, shop, value) Values (?, ?, ?, ?)
  469. SQL1_INPUTS = 1, 2, 3, 4
  470.  
  471. [updateShop]
  472. SQL1_1 = update shops SET value = ? where pid = ? and shop = ?
  473. SQL1_INPUTS = 1, 2, 3
  474.  
  475. [deleteShops]
  476. SQL1_1 = DELETE from shops where shop = ?
  477. SQL1_INPUTS = 1
  478. ;;--------------------------------------------------------------------------------------------------------------->
Advertisement
Add Comment
Please, Sign In to add comment