Raised This Month: $ Target: $400
 0% 

FATAL ERROR User Msg 'ScreenFade'


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-26-2007 , 20:56   Re: FATAL ERROR User Msg 'ScreenFade'
Reply With Quote #2

Quote:
write_short( 1<<12 ); // fade type ( in / out )
1<<12 ?? You're wrong.

Here the correct flag:

Quote:
FFADE_IN 0x0000 // Just here so we don't pass 0 into the function
FFADE_OUT 0x0001 // Fade out (not in)
FFADE_MODULATE 0x0002 // Modulate (don't blend)
FFADE_STAYOUT 0x0004 // ignores the duration, stays faded out until new ScreenFade message received

Do something like:

Code:
    #define FFADE_IN   0x0000     #define FFADE_OUT  0x0001     // ...         message_begin( MSG_ONE, gmsgFade, _, id );     write_short( 1<<10 ); // fade lasts this long duration     write_short( 1<<10 ); // fade lasts this long hold time     write_short( FFADE_IN ); // fade type ( in / out )     write_byte( 0 );      // fade red     write_byte( 255 );    // fade green     write_byte( 150 );    // fade blue     write_byte( iglow[id][0] ); // fade alpha     message_end( );
__________________
Arkshine is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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