View Single Post
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 01-04-2019 , 08:40   Re: error 032: array index out of bounds (variable "color3")
Reply With Quote #4

Maybe there is a problem with array declaration. In Pawn documentation is example:
PHP Code:
new Numbers[4] = {0,1,2,3}
So new color3[0][] = {255255255is probably wrong
Try to rewrite line 862 to:

PHP Code:
new color3[3] = {255255255}; 
and line 865 to:
PHP Code:
set_hudmessage(color3[0], color3[1], color3[2], -1.0verpos06.06.00.50.15, -1
PHP Code:
public hlx_amx_csay(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED
    
    
static message[192]
    
read_args(message191)
    
remove_quotes(message)
    
    new 
color3[3] = {255255255}
    new 
Float:verpos 0.3
    
    set_hudmessage
(color3[0], color3[1], color3[2], -1.0verpos06.06.00.50.15, -1)
    
show_hudmessage(0"%s"message)

    return 
PLUGIN_HANDLED

__________________

Last edited by NomisCZ; 01-04-2019 at 08:42.
NomisCZ is offline