Skip to content

Releases: Zeex/sampgdk

GDK 3.6

18 Dec 11:51
Compare
Choose a tag to compare
  • Added SAMPGDK_TIMER_CALL macro for timer callbacks (expands to SAMPGDK_CALL)
  • Added several new functions for calling SA-MP and other plugins' natives dynamically:
    • sampgdk_find_native(const char *name)
    • sampgdk_call_native(AMX_NATIVE native, cell *params)
    • sampgdk_invoke_native(AMX_NATIVE, const char *format, ...)
  • Minor code and build system improvements

GDK 3.5

23 Sep 15:32
Compare
Choose a tag to compare
  • Fixed a bug in sampgdk_vlogprintf() and other printf-like functions where some specifiers didn't work correctly
  • Fixed typos in the names of some native functions
  • Added IsValidVehicle() and Vehicle::IsValid() functions

GDK 3.4.1

09 Jul 22:31
Compare
Choose a tag to compare
  • Impoved timer resolution on Windows
  • Removed CallNative()
  • Fixed a couple of tiny memory leaks

GDK 3.4

09 Jul 22:35
Compare
Choose a tag to compare
  • Fixed timers not being fully destroyed when calling KillTimer()
  • Fixed KillTimer() crash when killing a timer from within its callback function
  • Fixed timer callbacks being passed a wrong timer ID
  • Fixed sampgdk_cleanup() / sampgdk_cleanup_plugin() not performing the cleanup
  • Added HTTP() function and OnHTTPResponse() callback
  • Fixed amx_Allot() returning success even though there's clearly not enoguh
    space on the heap
  • Fixed a couple of bugs in the fake AMX heap resizing code that caused prolems
    passing large amounts of data to natives/callbacks
  • Added CallNative() function for calling arbitrary natives in a convenient way
  • Added an option to build GDK as a static library (experimental)

GDK 3.3

09 Jul 22:39
Compare
Choose a tag to compare
  • Fixed a bug that stopped certain callbacks defined in gamemodes and
    filterscripts from being executed
  • Fixed a crash happening when a native function that is called is not found
  • Changed return type of some of the core API functions (and corresponding Plugin
    methods) to int so they now return an error code when fail and a non-negative
    return value indicates success
  • Renamed some methods of the Player and Vehicles classes
  • Added the FindSampGdk3 module to be used with CMake's find_pacakge() command

GDK 3.2.1

09 Jul 22:43
Compare
Choose a tag to compare
  • Fixed functions returning a float giving wrong result
  • Fixed the type of the mode parameter of ShowPlayerMarkers()
  • Added two missing callbacks that were introduced in SA-MP 0.3e
    bool OnPlayerClickTextDraw(int playerid, int clickedid); bool OnPlayerClickPlayerTextDraw(int playerid, int playertextid);
  • Renamed the weaponslot parameter of SetPlayerAmmo() to weaponid