Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.95 KB | None | 0 0
  1. SendFormattedMessage(playerid, color, fstring[], {Float, _}:...)
  2. {
  3.     static const
  4.         STATIC_ARGS = 3;
  5.  
  6.     new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
  7.  
  8.     if(n)
  9.     {
  10.         new
  11.             message[256],
  12.             arg_start,
  13.             arg_end;
  14.  
  15.         #emit CONST.alt        fstring
  16.         #emit LCTRL          5
  17.         #emit ADD
  18.         #emit STOR.S.pri        arg_start
  19.  
  20.         #emit LOAD.S.alt        n
  21.         #emit ADD
  22.         #emit STOR.S.pri        arg_end
  23.         do
  24.         {
  25.             #emit LOAD.I
  26.             #emit PUSH.pri
  27.             arg_end -= BYTES_PER_CELL;
  28.             #emit LOAD.S.pri      arg_end
  29.         }
  30.         while(arg_end > arg_start);
  31.  
  32.         #emit PUSH.S          fstring
  33.         #emit PUSH.C          210
  34.         #emit PUSH.ADR         message
  35.  
  36.         n += BYTES_PER_CELL * 3;
  37.         #emit PUSH.S          n
  38.         #emit SYSREQ.C         format
  39.  
  40.         n += BYTES_PER_CELL;
  41.         #emit LCTRL          4
  42.         #emit LOAD.S.alt        n
  43.         #emit ADD
  44.         #emit SCTRL          4
  45.  
  46.         return SendClientMessageEx(playerid, color, message);
  47.     }
  48.     else
  49.     {
  50.         return SendClientMessageEx(playerid, color, fstring);
  51.     }
  52. }
  53.  
  54.  
  55.  
  56. [15:25:31] [debug] Server crashed while executing sublime.amx
  57. [15:25:31] [debug] AMX backtrace:
  58. [15:25:31] [debug] #0 native format () from samp03svr
  59. [15:25:31] [debug] #1 0023fbfc in SendFormattedMessage (playerid=0, color=-1, fstring[]=@00e5f860 "> ", ... <2 arguments>) at D:\project\sw-project\include\functions/natives.pwn:233
  60. [15:25:31] [debug] #2 0023776c in KickPlayer (playerid=0, by[]=@00e4a2a4 "KickBot", reason[]=@00e4a2c4 "") at C:\Users\Lenovo\Desktop\Новая папка\samp-sw-gamemode\gamemodes\sublime.pwn:38741
  61. [15:25:31] [debug] #3 002154f4 in public OnLoadAccount (playerid=0) at C:\Users\Lenovo\Desktop\Новая папка\samp-sw-gamemode\gamemodes\sublime.pwn:36041
  62. [15:25:31] [debug] Native backtrace:
  63. [15:25:31] [debug] #0 f736f9f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
  64. [15:25:31] [debug] #1 f7368a62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
  65. [15:25:31] [debug] #2 f7369764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
  66. [15:25:31] [debug] #3 f736b6b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
  67. [15:25:31] [debug] #4 f736f31d in ?? () from plugins/crashdetect.so
  68. [15:25:31] [debug] #5 f7769b20 in __kernel_rt_sigreturn () from linux-gate.so.1
  69. [15:25:31] [debug] #6 080acc22 in ?? () from ./samp03svr
  70. [15:25:31] [debug] #7 080ad67f in ?? () from ./samp03svr
  71. [15:25:31] [debug] #8 080e1b69 in ?? () from ./samp03svr
  72. [15:25:31] [debug] #9 080e8760 in ?? () from ./samp03svr
  73. [15:25:31] [debug] #10 0809d844 in ?? () from ./samp03svr
  74. [15:25:31] [debug] #11 f736a4d3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
  75. [15:25:31] [debug] #12 00000000 in nil ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement