y_funcinc.inc 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**--------------------------------------------------------------------------**\
  2. ===============================
  3. y_funcinc - Fix SYSREQ.C bugs
  4. ===============================
  5. Description:
  6. Calls functions which are used in SYSREQ.C calls before they are used. The
  7. compiler crashes if the functions are not used in an included function
  8. before being used in a SYSREQ.C call as the function is not in the native
  9. functions table.
  10. Legal:
  11. Version: MPL 1.1
  12. The contents of this file are subject to the Mozilla Public License Version
  13. 1.1 (the "License"); you may not use this file except in compliance with
  14. the License. You may obtain a copy of the License at
  15. http://www.mozilla.org/MPL/
  16. Software distributed under the License is distributed on an "AS IS" basis,
  17. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  18. for the specific language governing rights and limitations under the
  19. License.
  20. The Original Code is the YSI funcinc include.
  21. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  22. Portions created by the Initial Developer are Copyright (C) 2011
  23. the Initial Developer. All Rights Reserved.
  24. Contributors:
  25. ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
  26. Thanks:
  27. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  28. ZeeX - Very productive conversations.
  29. koolk - IsPlayerinAreaEx code.
  30. TheAlpha - Danish translation.
  31. breadfish - German translation.
  32. Fireburn - Dutch translation.
  33. yom - French translation.
  34. 50p - Polish translation.
  35. Zamaroht - Spanish translation.
  36. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
  37. for me to strive to better.
  38. Pixels^ - Running XScripters where the idea was born.
  39. Matite - Pestering me to release it and using it.
  40. Very special thanks to:
  41. Thiadmer - PAWN, whose limits continue to amaze me!
  42. Kye/Kalcor - SA:MP.
  43. SA:MP Team past, present and future - SA:MP.
  44. Version:
  45. 1.0
  46. Changelog:
  47. 06/08/10:
  48. First version
  49. </remarks>
  50. \**--------------------------------------------------------------------------**/
  51. #if defined _INC_y_funcinc
  52. #endinput
  53. #endif
  54. #define _INC_y_funcinc
  55. forward _@_y_funcinc_@_();
  56. public _@_y_funcinc_@_()
  57. {
  58. // This function calls any functions used in assembly code in YSI to ensure
  59. // that they are included in the native function table.
  60. printf("");
  61. new _funcinc_a[1 char];
  62. strunpack(_funcinc_a, "");
  63. memcpy("", "", 0, 0, 0);
  64. format("", 0, "");
  65. strfind("", "", false, 0);
  66. strcat(_funcinc_a, "", 0);
  67. strlen("");
  68. CallRemoteFunction("", "");
  69. CallLocalFunction("", "");
  70. SetTimerEx("", 0, 0, "");
  71. heapspace();
  72. setproperty(0, "", 0, "");
  73. getproperty(0, "", 0, _funcinc_a);
  74. }