Raised This Month: $ Target: $400
 0% 

message functions confusion


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-23-2011 , 02:30   Re: message functions confusion
Reply With Quote #1

Quote:
Originally Posted by urban_ninja View Post
in the message_const.inc it show the color types but I dont see how amxx would know on its own which of the values between 0-255 its supposed to be.
// write_byte(red)
// write_byte(green)
// write_byte(blue)

But then if I specify the value like shown below how would amxx tell appart which one of those value is supposed to go towards red, blue or green?

write_byte(250)
write_byte(150)
write_byte(0)
They must always be in that order: red, green, blue. In fact, every write_* function must be in the correct order for the message to get built correctly.
__________________
fysiks is online now
Reply



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 23:34.


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