1
0

y_svar.inc 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**--------------------------------------------------------------------------**\
  2. =================================
  3. y_svar - Automatic data saving.
  4. =================================
  5. Description:
  6. Declares data to be automatically saved and loaded for the whole server.
  7. Legal:
  8. Version: MPL 1.1
  9. The contents of this file are subject to the Mozilla Public License Version
  10. 1.1 (the "License"); you may not use this file except in compliance with
  11. the License. You may obtain a copy of the License at
  12. http://www.mozilla.org/MPL/
  13. Software distributed under the License is distributed on an "AS IS" basis,
  14. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  15. for the specific language governing rights and limitations under the
  16. License.
  17. The Original Code is the YSI utils include.
  18. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  19. Portions created by the Initial Developer are Copyright (C) 2011
  20. the Initial Developer. All Rights Reserved.
  21. Contributors:
  22. ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
  23. Thanks:
  24. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  25. ZeeX - Very productive conversations.
  26. koolk - IsPlayerinAreaEx code.
  27. TheAlpha - Danish translation.
  28. breadfish - German translation.
  29. Fireburn - Dutch translation.
  30. yom - French translation.
  31. 50p - Polish translation.
  32. Zamaroht - Spanish translation.
  33. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
  34. for me to strive to better.
  35. Pixels^ - Running XScripters where the idea was born.
  36. Matite - Pestering me to release it and using it.
  37. Very special thanks to:
  38. Thiadmer - PAWN, whose limits continue to amaze me!
  39. Kye/Kalcor - SA:MP.
  40. SA:MP Team past, present and future - SA:MP.
  41. Version:
  42. 0.1
  43. Changelog:
  44. 25/02/12:
  45. First version.
  46. Functions:
  47. Stock:
  48. -
  49. Inline:
  50. -
  51. Variables:
  52. Global:
  53. -
  54. </remarks>
  55. \**--------------------------------------------------------------------------**/
  56. // y_uvars
  57. #if !defined MODE_NAME
  58. #error Please define "MODE_NAME" before including y_svar.
  59. #endif
  60. #if defined SVAR_USE_MYSQL
  61. #if _YSI_PLUGINS_MYSQL == 7
  62. #include "y_svar/blueg7"
  63. #elseif _YSI_PLUGINS_MYSQL == 6
  64. #include "y_svar/blueg6"
  65. #elseif _YSI_PLUGINS_MYSQL == 7
  66. #include "y_svar/stricken"
  67. #else
  68. #error No MySQL plugin found.
  69. #endif
  70. #elseif defined SVAR_USE_SQLITE
  71. #include "y_svar/sqlite"
  72. #else
  73. #include "y_svar/ini"
  74. #endif
  75. #if defined YSI_TESTS
  76. #include "y_testing"
  77. #include "y_svar/tests"
  78. #endif