Raised This Month: $ Target: $400
 0% 

messagemode - getting more than 1 argument


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-11-2009 , 17:47   Re: messagemode - getting more than 1 argument
Reply With Quote #9

I'm not sure exactly what you're trying to do or if this will apply to messagemode but here's a more efficient way of storing RGB values.
PHP Code:
//Sample color values
new 125;
new 
220;
new 
53;
    
//Variable to store our RGB values
new RGB = ( << 16 ) | ( << ) | B;
    
//Retrieve individual R, G, & B values from RGB variable
RGB >> 16;
= ( RGB >> ) & ~0xFF00;
RGB & ~0xFFFF00
__________________

Last edited by Bugsy; 10-11-2009 at 17:51.
Bugsy 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 22:38.


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