View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-28-2009 , 17:54   Re: Programming for starters
Reply With Quote #19

Quote:
Originally Posted by joaquimandrade View Post
Thanks, fixed.

I think that the big difference in mine is the approach that i had. I still don't know if it works right but it's certainly not normal.

Please do a tutorial. I would love to read a text of yours.
You could also do:

anyColor[x] = clamp( anyColor[x] , 0 , 255 )

Clamp is a fairly simple and useful function that I dont think will confuse new scriptors.
__________________
Bugsy is offline