y_remote.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. * <library name="y_remote">
  3. * <section>
  4. * Description
  5. * </section>
  6. * Wrapper for "__CallRemoteFunction". Enforces some features like no returns
  7. * and arrays being followed by their length.
  8. * <section>
  9. * Version
  10. * </section>
  11. * 1.0
  12. * <section>
  13. * Macros
  14. * </section><ul>
  15. * <symbol name="remotefunc">Define a function to be called remotely (use like "stock").</symbol>
  16. * <symbol name="broadcastfunc">Call the function, but in all scripts.</symbol>
  17. * <symbol name="localfunc">Call the function by name, not address, in the current script.</symbol>
  18. * </ul><section>Compile options</section><ul>
  19. * <symbol name="YSI_NO_MASTER">Disable all knowledge of other scripts.</symbol>
  20. * </ul>
  21. * </library>
  22. *//** *//*
  23. Legal:
  24. Version: MPL 1.1
  25. The contents of this file are subject to the Mozilla Public License Version
  26. 1.1 the "License"; you may not use this file except in compliance with
  27. the License. You may obtain a copy of the License at
  28. http://www.mozilla.org/MPL/
  29. Software distributed under the License is distributed on an "AS IS" basis,
  30. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  31. for the specific language governing rights and limitations under the
  32. License.
  33. The Original Code is the YSI framework.
  34. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  35. Portions created by the Initial Developer are Copyright C 2011
  36. the Initial Developer. All Rights Reserved.
  37. Contributors:
  38. Y_Less
  39. koolk
  40. JoeBullet/Google63
  41. g_aSlice/Slice
  42. Misiur
  43. samphunter
  44. tianmeta
  45. maddinat0r
  46. spacemud
  47. Crayder
  48. Dayvison
  49. Ahmad45123
  50. Zeex
  51. irinel1996
  52. Yiin-
  53. Chaprnks
  54. Konstantinos
  55. Masterchen09
  56. Southclaws
  57. PatchwerkQWER
  58. m0k1
  59. paulommu
  60. udan111
  61. Thanks:
  62. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  63. ZeeX - Very productive conversations.
  64. koolk - IsPlayerinAreaEx code.
  65. TheAlpha - Danish translation.
  66. breadfish - German translation.
  67. Fireburn - Dutch translation.
  68. yom - French translation.
  69. 50p - Polish translation.
  70. Zamaroht - Spanish translation.
  71. Los - Portuguese translation.
  72. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  73. me to strive to better.
  74. Pixels^ - Running XScripters where the idea was born.
  75. Matite - Pestering me to release it and using it.
  76. Very special thanks to:
  77. Thiadmer - PAWN, whose limits continue to amaze me!
  78. Kye/Kalcor - SA:MP.
  79. SA:MP Team past, present and future - SA:MP.
  80. Optional plugins:
  81. Gamer_Z - GPS.
  82. Incognito - Streamer.
  83. Me - sscanf2, fixes2, Whirlpool.
  84. */
  85. #if !defined _INC_y_remote
  86. #tryinclude "y_remote\y_remote_entry"
  87. #endif
  88. #if !defined _INC_y_remote
  89. #tryinclude "YSI_Coding\y_remote\y_remote_entry"
  90. #endif
  91. #if !defined _INC_y_remote
  92. #tryinclude "YSI\YSI_Coding\y_remote\y_remote_entry"
  93. #endif
  94. #if !defined _INC_y_remote
  95. #tryinclude <YSI_Coding\y_remote\y_remote_entry>
  96. #endif
  97. #if !defined _INC_y_remote
  98. #tryinclude <YSI\YSI_Coding\y_remote\y_remote_entry>
  99. #endif
  100. #if !defined _INC_y_remote
  101. #error Could not find y_remote
  102. #endif