07.03.2012, 21:21
Hey. I have this custom SCM function and the function works great, but after the function is finished nothing after is executed. So can someone tell what's wrong?
pawn Code:
stock SendClientMessageExx(playerid, color, const szFormatString[], {FORMAT_TAGS}:...) {
const
iBufferSize = FORMAT_PRINT_BUFFER_SIZE
;
static
s_szBuffer[FORMAT_PRINT_BUFFER_SIZE]
;
new
iNumArgs = numargs(),
i = iNumArgs - 1
;
while (--i >= 2) {
#emit LOAD.S.pri i
#emit SHL.C.pri 2
#emit ADD.C 16
#emit MOVE.alt
#emit LCTRL 5
#emit ADD
#emit LOAD.I
#emit PUSH.pri
}
#emit PUSH.S szFormatString
#emit PUSH.C iBufferSize
#emit PUSH.C s_szBuffer
#emit LOAD.S.pri iNumArgs
#emit SHL.C.pri 2
#emit ADD.C 8
#emit PUSH.pri
#emit LCTRL 6
#emit ADD.C 28
#emit PUSH.pri
#emit CONST.pri formatex
#emit SCTRL 6
SendClientMessage(playerid, color, s_szBuffer);
}