Thread: cell parameters
View Single Post
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 09-26-2017 , 07:50   Re: cell parameters
Reply With Quote #5

Thank you i appreciate your advice.

but how can i round it in cpp like this below writted in pawn

PHP Code:

stock do_screen_fade
(idFloat:fadeTimeFloat:holdTimetyperedgreenbluealpha)

    new 
fadehold;
    
fade clamp(    floatround(     fadeTime float(1<<12)), 00xFFFF    );

    
hold clamp(     floatround(         holdTime float(1<<12)), 00xFFFF      );
        
    
// Message
    
message_begin(    MSG_ONE_UNRELIABLE"ScreenFade"_id );
    
write_short(          fade    );
    
write_short(    hold    );
    
write_short(    type   );
    
write_byte(      red    );
    
write_byte(  green    );
    
write_byte(    blue    );
    
write_byte(     alpha    );
    
message_end(    ); 
__________________

Last edited by ghost95v; 09-26-2017 at 07:56.
ghost95v is offline
Send a message via Skype™ to ghost95v