1
0

y_funcinc.inc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #if defined _INC_y_funcinc
  2. #endinput
  3. #endif
  4. #define _INC_y_funcinc
  5. /*+
  6. * <library name="y_funcinc">
  7. * <section>
  8. * Description
  9. * </section>
  10. * Calls functions which are used in SYSREQ.C calls before they are used. The
  11. * compiler crashes if the functions are not used in an included function
  12. * before being used in a SYSREQ.C call as the function is not in the native
  13. * functions table.
  14. * <section>
  15. * Version
  16. * </section>
  17. * 1.0
  18. * </library>
  19. *//** *//*
  20. Legal:
  21. Version: MPL 1.1
  22. The contents of this file are subject to the Mozilla Public License Version
  23. 1.1 the "License"; you may not use this file except in compliance with
  24. the License. You may obtain a copy of the License at
  25. http://www.mozilla.org/MPL/
  26. Software distributed under the License is distributed on an "AS IS" basis,
  27. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  28. for the specific language governing rights and limitations under the
  29. License.
  30. The Original Code is the YSI framework.
  31. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  32. Portions created by the Initial Developer are Copyright C 2011
  33. the Initial Developer. All Rights Reserved.
  34. Contributors:
  35. Y_Less
  36. koolk
  37. JoeBullet/Google63
  38. g_aSlice/Slice
  39. Misiur
  40. samphunter
  41. tianmeta
  42. maddinat0r
  43. spacemud
  44. Crayder
  45. Dayvison
  46. Ahmad45123
  47. Zeex
  48. irinel1996
  49. Yiin-
  50. Chaprnks
  51. Konstantinos
  52. Masterchen09
  53. Southclaws
  54. PatchwerkQWER
  55. m0k1
  56. paulommu
  57. udan111
  58. Thanks:
  59. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  60. ZeeX - Very productive conversations.
  61. koolk - IsPlayerinAreaEx code.
  62. TheAlpha - Danish translation.
  63. breadfish - German translation.
  64. Fireburn - Dutch translation.
  65. yom - French translation.
  66. 50p - Polish translation.
  67. Zamaroht - Spanish translation.
  68. Los - Portuguese translation.
  69. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  70. me to strive to better.
  71. Pixels^ - Running XScripters where the idea was born.
  72. Matite - Pestering me to release it and using it.
  73. Very special thanks to:
  74. Thiadmer - PAWN, whose limits continue to amaze me!
  75. Kye/Kalcor - SA:MP.
  76. SA:MP Team past, present and future - SA:MP.
  77. Optional plugins:
  78. Gamer_Z - GPS.
  79. Incognito - Streamer.
  80. Me - sscanf2, fixes2, Whirlpool.
  81. */
  82. forward _@_y_funcinc_@_();
  83. public _@_y_funcinc_@_()
  84. {
  85. new _funcinc_a[1 char];
  86. // This function calls any functions used in assembly code in YSI to ensure
  87. // that they are included in the native function table.
  88. printf("");
  89. strunpack(_funcinc_a, "");
  90. memcpy("", "", 0, 0, 0);
  91. format("", 0, "");
  92. strfind("", "", false, 0);
  93. strcat(_funcinc_a, "", 0);
  94. strlen("");
  95. CallRemoteFunction("", "");
  96. CallLocalFunction("", "");
  97. SetTimerEx("", 0, 0, "");
  98. heapspace();
  99. setproperty(0, "", 0, "");
  100. getproperty(0, "", 0, _funcinc_a);
  101. memset("", 0, 0);
  102. strcmp("", "");
  103. }