View Single Post
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-28-2009 , 18:02   Re: Programming for starters
Reply With Quote #20

Quote:
Originally Posted by Bugsy View Post
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.
Its not suitable for what is written now because it is a function provided by amxmodx.
__________________
joaquimandrade is offline