Answered Help what's wrong here?

JayCoder

Veteran
Messages
385
Reaction score
151
Points
903
Code:
        self.Void.RGBEditor["RGBT"+i] = createText("CENTER", "CENTER", "DEFAULT", 1, (i*23)-0, -20, 2, 1, self.curs[i]);
        self.Void.RGBEditor["RGB"+i] = createText("CENTER", "CENTER", "DEFAULT", 1, (i*23)-0, -40, 2, 1, RGB[i]);

error code:
UNRECOVERABLE ERROR:

^1SCRIPT ERROR: Preprocessor error, No generated data for 'scripts/mp/gametypes/_clientids.gsc'

:781 : (-6) Error: Expected 3 arguments, received 0 for RGB
 

Aspire

Known Member
Messages
31
Reaction score
14
Points
118
Post your createText function here please, probably something wrong with it
 

JayCoder

Veteran
Messages
385
Reaction score
151
Points
903
Post your createText function here please, probably something wrong with it

Code:
function createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
{
    textElem = newClientHudElem(self);
    textElem.sort = sort;
    textElem.alpha = alpha;
    textElem.x = x;
    textElem.y = y;
    textElem.glowColor = glow;
    textElem.glowAlpha = 1;
    textElem.fontScale = fontScale;
    textElem setText(text);
    return textElem;
}


updated still not working 

        //                               createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text;
        self.Void.RGBEditor["RGBT"+i] = self createText("default", 1, "CENTER", "CENTER", (i*23)-0, -20, 2, 1, self.curs[i]);
        self.Void.RGBEditor["RGB"+i] = self createText("default", 1, "CENTER", "CENTER", (i*23)-0, -40, 2, 1, RGB[i]);
 
Last edited:

JayCoder

Veteran
Messages
385
Reaction score
151
Points
903
you forgot to set the glow i think
its still giving me


UNRECOVERABLE ERROR:

^1SCRIPT ERROR: Preprocessor error, No generated data for 'scripts/mp/gametypes/_clientids.gsc'

:780 : (-6) Error: Expected 3 arguments, received 0 for RGB
 

JayCoder

Veteran
Messages
385
Reaction score
151
Points
903
Code:
function RGBEdit( Shader )
{
    self.RGBEditor = true;
    self MenuIsClosing();
    self.curs = StrTok( "R|G|B", "|" );
    self.CRGB = 0;
    self.Void.RGBEditor["Rec"] = self createRectangle( "", "", 23, 90, 89, 18, (0,0,0), "white", 2, 1 );
    self.Void.RGBEditor["BG"] = self createRectangle( "", "", 23, -30, 90, 40, (0,0,0), "white", 0, 1 );     
    self.Void.RGBEditor["PosMark"] = self createRectangle( "", "", 0, 0, 10, 4, (0.55, 0.55, 0.55), "white", 2, 1 );
      self.Void.RGBEditor["PosBars1"] = self createRectangle( "", "", 0, 38, 4, 80, (1,1,1), "white", 1, 1 );
      self.Void.RGBEditor["MainBG"] = self createRectangle( "", "", 23, 40, 90, 120, (0,0,0), "white", 0, .8 );
    self.Void.RGBEditor["pre"] = self createText("CENTER", "CENTER", "DEFAULT", 1, 23, 90, 2, 1, "PREVIEW");
    RGB = "RGB";
    for(i=0;i<3;i++)
    {
        self.curs[i] = 0;
        self.Markerpos[i] = 0;
        //                               createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text;
        self.Void.RGBEditor["RGBT"+i] = self createText("default", 1, "CENTER", "CENTER", (i*23)-0, -20, 2, 1, 1, self.curs[i]);
        self.Void.RGBEditor["RGB"+i] = self createText("default", 1, "CENTER", "CENTER", (i*23)-0, -40, 2, 1, 1, RGB[i]);
        //                self.menuText = self createText("default", 1.5, "TOP", "TOP", self.openBox.x - 80, 100, 3, 1, undefined, string);
    }
        
    self.Void.RGBEditor["RGB0"].color = (1,0,0);
    self.Void.RGBEditor["RGB1"].color = (0,1,0);
    self.Void.RGBEditor["RGB2"].color = (0,0,1);
    self DoAlpha();
    wait 0.25;
    while( 1 )
    {
        if(self adsButtonPressed() || self attackButtonPressed() )
        {
            self.curs[self.CRGB] += self AttackButtonPressed();
            self.curs[self.CRGB] -= self AdsButtonPressed();
            if(self.curs[self.CRGB] > 255)
                self.curs[self.CRGB] = 0;
            if(self.curs[self.CRGB] < 0)
                self.curs[self.CRGB] = 255;
            self.Void.RGBEditor["Rec"].color = ((self.curs[0])/255, (self.curs[1])/255, (self.curs[2])/255 );
            self.Void.RGBEditor["RGBT"+self.CRGB] setValue( self.curs[self.CRGB] );
            
            if(self AttackButtonPressed())
                  self.Void.RGBEditor["PosMark"].y += .3;
            
            if(self adsButtonPressed())
                self.Void.RGBEditor["PosMark"].y -= .3;
        
            if(self.Void.RGBEditor["PosMark"].y < 0)
                self.Void.RGBEditor["PosMark"].y = 76.3;
                
            if(self.Void.RGBEditor["PosMark"].y > 76.3)
                self.Void.RGBEditor["PosMark"].y = 0;
                
            self.Markerpos[self.CRGB] = self.Void.RGBEditor["PosMark"].y;
        }
        if( self FragButtonPressed() )
        {
            self.CRGB += self FragButtonPressed();
            if( self.CRGB > 2 )
                self.CRGB = 0;
            
            self DoAlpha();
            self.Void.RGBEditor["PosMark"].y = self.Markerpos[self.CRGB];
            
            if( self.Void.RGBEditor["PosMark"].x > 23 )
                self.Void.RGBEditor["PosMark"].x = -23;
                
            if( self.Void.RGBEditor["PosBars1"].x > 23 )
                self.Void.RGBEditor["PosBars1"].x = -23;
                                
            self.Void.RGBEditor["PosBars1"].x += 23;
            self.Void.RGBEditor["PosMark"].x += 23;
            wait 0.2;
        }
        if( self MeleeButtonPressed() )
        {
            self CloseRGB();
            self MenuIsOpening();
            self.RGBEditor = false;
            break;
        }
        if( self UseButtonPressed() )
        {
            self CloseRGB( Shader );
            self MenuIsOpening();
            self.RGBEditor = false;
            break;
        }
        wait 0.05;
    }
}
 

Cxwh

Veteran
Messages
64
Reaction score
45
Points
793
change
Code:
RGB = "RGB";
to
Code:
rgb = "RGB";
and then
Code:
self.Void.RGBEditor["RGB"+i] = self createText("default", 1, "CENTER", "CENTER", (i*23)-0, -40, 2, 1, 1, RGB[i]);
to
Code:
self.Void.RGBEditor["RGB"+i] = self createText("default", 1, "CENTER", "CENTER", (i*23)-0, -40, 2, 1, 1, rgb[i]);
 
Top