1
0

phys_memory-test.pwn 444 B

123456789101112131415161718192021222324
  1. #include <a_samp>
  2. #include "..\amx"
  3. #include "..\phys_memory"
  4. ToCharString(s[], size = sizeof(s)) {
  5. for (new i = 0; i < size; i++) {
  6. s[i] = swapchars(s[i]);
  7. }
  8. }
  9. main() {
  10. printf("AMX address: %x", GetAmxAddress());
  11. printf("AMX base address: %x", GetAmxBaseAddress());
  12. new s[24 char];
  13. new s2[24];
  14. ReadPhysMemory(0x004AB8CC, s);
  15. ToCharString(s);
  16. strunpack(s2, s);
  17. print(s2); // prints "SA-MP Dedicated Server" on SA-MP 0.3d R2
  18. }