AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs crash - overflow (https://forums.alliedmods.net/showthread.php?t=272211)

Fuck For Fun 09-26-2015 08:33

cs crash - overflow
 
what the problem with the lines?

when i run a Zombie day i get a DC (overflow) and no log error.
Code:

        // Zombie fog Map
        engfunc( EngFunc_LightStyle, 0, "b" );
        //set_lights("b")
       
        /* Fog */
        static iFogMsgId;
        if ( !iFogMsgId ) iFogMsgId = get_user_msgid( "Fog" );
       
        message_begin( MSG_ALL, iFogMsgId, { 0, 0, 0 }, 0 );
        {
            write_byte( random_num( 140, 160 ) );    // Red
            write_byte( 15 );            // Green
            write_byte( 255 );            // Blue
            write_byte( 13 );
            write_byte( 10 );
            write_byte( 45 );
            write_byte( 19 );
        }
        message_end();
        /* Fog End */

so i think the problem come from message_begin, cuz before never get this error

dFF 09-26-2015 11:31

Re: cs crash - overflow
 
Try to use MSG_BROADCAST inseid of MSG_ALL
or look here https://forums.alliedmods.net/showthread.php?t=158512

Fuck For Fun 09-26-2015 12:18

Re: cs crash - overflow
 
Quote:

Originally Posted by dFF (Post 2347164)
Try to use MSG_BROADCAST inseid of MSG_ALL
or look here https://forums.alliedmods.net/showthread.php?t=158512

EDIT: Still Day Crashe my cs.

should help me with change fog?

Fog mine: Black map at zombie day
to fog like the picture?
http://up415.siz.co.il/up2/zzmzkt4yyyd2.png


All times are GMT -4. The time now is 22:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.