View Single Post
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-02-2008 , 06:28   Re: imessage random colors
Reply With Quote #2

Small differences in AMX MOD X v1.8.1

Original:
Code:
read_argv(2, mycol, 11)        // RRRGGGBBB
    vals[2] = str_to_num(mycol[6])
    
    mycol[6] = 0
    vals[1] = str_to_num(mycol[3])
    
    mycol[3] = 0
    vals[0] = str_to_num(mycol[0])
Modified (added code):
Code:
    read_argv(2, mycol, 11)        // RRRGGGBBB
    vals[2] = str_to_num(mycol[6])
    if (vals[2] == 256)
        vals[2] = random(200) + 25
    
    mycol[6] = 0
    vals[1] = str_to_num(mycol[3])
    if (vals[1] == 256)
        vals[1] = random(200) + 25
    
    mycol[3] = 0
    vals[0] = str_to_num(mycol[0])
    if (vals[0] == 256)
        vals[0] = random(200) + 25

Last edited by Sn!ff3r; 01-02-2008 at 06:31.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r