Raised This Month: $ Target: $400
 0% 

How do I convert a BYTE array to LONG in AMXX?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-17-2013 , 17:42   Re: How do I convert a BYTE array to LONG in AMXX?
Reply With Quote #5

Following stock is from some code Arkshine has posted on forum, revert it to understand the sent message.

PHP Code:
Util_Fog(idred=127green=127blue=127Float:dentity=0.001bool:clear=false)
{
    static 
msgFog 0;
    if( !
msgFog )
    {
        
msgFog get_user_msgid("Fog");
    }
    
message_begin(id MSG_ONE MSG_ALLmsgFog_id);
    
write_byte(red);
    
write_byte(green);
    
write_byte(blue);
    
write_long(_:floatclamp(dentity0.00010.25 ) * _:!clear;);
    
message_end();

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 18:48.


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