Post: Where am I going wrong (Adding infinite scroll to source engine base)
05-23-2016, 05:22 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have been at this for months off and on no one has ever really been able to help me succeed in this and I am failing every time with 2 script errors, Anyone got any ideas or on how to do this?

This is what I changed so far with no luck

    
updateScrollbar2()//infinite scrolling
{
if(self.menu.curs[self.menu.currentmenu]<0)
self.menu.curs[self.menu.currentmenu] = self.menu.menuopt[self.menu.currentmenu].size-1;

if(self.menu.curs[self.menu.currentmenu]>self.menu.menuopt[self.menu.currentmenu].size-1)
self.menu.curs[self.menu.currentmenu] = 0;

if(!isDefined(self.menu.menuopt[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]-2])||self.menu.menuopt[self.menu.currentmenu].size<=5)
{
for(i = 0; i < 5; i++)
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][i]))
self.Private["options"][i] setSafeText(self.menu.menuopt[self.menu.currentmenu][i]);
else
self.Private["options"][i] setSafeText("");

if(self.menu.curs[self.menu.currentmenu] == i)
self.Private["options"][i] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][i] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.menu.bar.y = -50 + (25*self.menu.curs[self.menu.currentmenu]);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]+2]))
{
xePixTvx = 0;
for(i=self.menu.curs[self.menu.currentmenu]-2;i<self.menu.curs[self.menu.currentmenu]+3;i++)
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][i]))
self.Private["options"][xePixTvx] setSafeText(self.menu.menuopt[self.menu.currentmenu][i]);
else
self.Private["options"][xePixTvx] setSafeText("");

if(self.menu.curs[self.menu.currentmenu]==i)
self.Private["options"][xePixTvx] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][xePixTvx] affectElement("alpha", .2, .3);//every other option besides the current option

xePixTvx ++;
}
self.menu.bar.y = -50 + (25*2);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
for(i = 0; i < 5; i++)
{
self.Private["options"][i] setSafeText(self.menu.menuopt[self.menu.currentmenu][self.menu.menuopt[self.menu.currentmenu].size+(i-5)]);

if(self.menu.curs[self.menu.currentmenu]==self.menu.menuopt[self.menu.currentmenu].size+(i-5))
self.Private["options"][i] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][i] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.menu.bar.y = -50 + (25*((self.menu.curs[self.menu.currentmenu]-self.menu.menuopt[self.menu.currentmenu].size)+5));//when the y value is being changed to move HUDs, make sure to change -50
}
}
}

affectElement(type, time, value)
{
if(type == "x" || type == "y")
self moveOverTime(time);
else
self fadeOverTime(time);

if(type == "x")
self.x = value;
if(type == "y")
self.y = value;
if(type == "alpha")
self.alpha = value;
if(type == "color")
self.color = value;
}
(adsbygoogle = window.adsbygoogle || []).push({});
05-23-2016, 07:13 AM #11
Originally posted by dorathekiller97 View Post
I know, like "Too many parameters" those pop up all the time. But this will actually tell you what you're missing. Smile


Dude, I am light weight pissed off right now, I have been working at this for TWO weeks lol and the second you tell me this, I get no errors.
05-23-2016, 07:15 AM #12
DoraTheKiller97
Treasure hunter
Originally posted by TheNiceUb3r View Post
Dude, I am light weight pissed off right now, I have been working at this for TWO weeks lol and the second you tell me this, I get no errors.


No i havent tried messing with Infinite Scrolling. I wouldnt know either. If you cant get it to work, id suggest asking Pix if he could help.
You must login or register to view this content.

^ If you have errors it should look like this though
05-23-2016, 07:16 AM #13
Originally posted by dorathekiller97 View Post
No i havent tried messing with Infinite Scrolling. I wouldnt know either. If you cant get it to work, id suggest asking Pix if he could help.
You must login or register to view this content.

^ If you have errors it should look like this though


I have gotten errors like those before yeah, And I have tried contacting Pix multiple times, No luck...
05-23-2016, 07:34 AM #14
Originally posted by dorathekiller97 View Post
No i havent tried messing with Infinite Scrolling. I wouldnt know either. If you cant get it to work, id suggest asking Pix if he could help.
You must login or register to view this content.

^ If you have errors it should look like this though


Now I got it to 0 script errors and its just not moving. Dafuck
05-23-2016, 07:40 AM #15
DoraTheKiller97
Treasure hunter
Originally posted by TheNiceUb3r View Post
Now I got it to 0 script errors and its just not moving. Dafuck


Ask xTUL to help you. Smile
05-23-2016, 07:41 AM #16
Originally posted by dorathekiller97 View Post
Ask xTUL to help you. Smile


I have asked so many people man its really unreal no one seems to know how to or couldnt be bothered to help, It scrolls but the scrollbar does not go down etc... it seems
05-23-2016, 11:48 AM #17
Patrick
League Champion
Originally posted by TheNiceUb3r View Post
I have asked so many people man its really unreal no one seems to know how to or couldnt be bothered to help, It scrolls but the scrollbar does not go down etc... it seems


Hit me up with your skype ill attempt to do it for you.
05-23-2016, 08:13 PM #18
Originally posted by 32085
Hit me up with your skype ill attempt to do it for you.


Whats your skype bro?
05-23-2016, 09:50 PM #19
Originally posted by 32085
Hit me up with your skype ill attempt to do it for you.


Everyone he got this for me and he did A+ job thanks bae!

The following user thanked TheNiceUb3r for this useful post:

Patrick

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo