Pawno compiling crash, SendClientMessageFormatted
#1

Hi there!
I'm having a very strange problem with my pawno. When I try to compile my script, it crashes -.- (the pawncc.exe).
That's because of this code:
pawn Код:
stock SendMessage(playerid, color, fstring[], {Float, _}:...)
{
    static const STATIC_ARGS = 3;
    new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
    if(n)
    {
        new message[144], arg_start, arg_end;
       
        #emit CONST.alt         fstring
        #emit LCTRL             5
        #emit ADD
        #emit STOR.S.pri        arg_start
       
        #emit LOAD.S.alt        n
        #emit ADD
        #emit STOR.S.pri        arg_end
        do
        {
            #emit LOAD.I
            #emit PUSH.pri
           
            arg_end -= BYTES_PER_CELL;
           
            #emit LOAD.S.pri    arg_end
        }
        while(arg_end > arg_start);
       
        #emit PUSH.S            fstring
        #emit PUSH.C            144
        #emit PUSH.ADR          message
       
        n += BYTES_PER_CELL * 3;
       
        #emit PUSH.S            n
        #emit SYSREQ.C          format
       
        n += BYTES_PER_CELL;
       
        #emit LCTRL             4
        #emit LOAD.S.alt        n
        #emit ADD
        #emit SCTRL             4
       
        if(playerid == INVALID_PLAYER_ID)
        {
            #pragma unused playerid
            return SendClientMessageToAll(color, message);
        }
        else return SendClientMessage(playerid, color, message);
    }
    else
    {
        if(playerid == INVALID_PLAYER_ID)
        {
            #pragma unused playerid
            return SendClientMessageToAll(color, fstring);
        }
        else return SendClientMessage(playerid, color, fstring);
    }
}
BYTES_PER_CELL is defined on 4. The strange thing is, is that it worked before. After re-making the GM, it didn't work anymore
I tried already to re-download everything (includes, plugins, pawno etc..) but that didn't seem to work.
Anyone got a clue what's going on? Thanks in advance.

Regards,
Kevin
Reply


Messages In This Thread
Pawno compiling crash, SendClientMessageFormatted - by Kwarde - 02.07.2011, 08:24
Re: Pawno compiling crash, SendClientMessageFormatted - by Bakr - 02.07.2011, 08:41
Re: Pawno compiling crash, SendClientMessageFormatted - by Calgon - 02.07.2011, 08:42
Re: Pawno compiling crash, SendClientMessageFormatted - by Kwarde - 02.07.2011, 09:42
Re: Pawno compiling crash, SendClientMessageFormatted - by RyDeR` - 02.07.2011, 13:10
Re: Pawno compiling crash, SendClientMessageFormatted - by Kwarde - 02.07.2011, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)