Post: SPRX Help
05-15-2016, 09:01 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey I been working on my MW3 Menu but when i added the scroll bar updater i keep getting a error

where it says if (i != scroll) the i is my error can someone help fix it

void UpdateScroll(int client, int scroll)
{
for(int i = 0; i <= MaxScroll[client]; ++i);
{
if (i != scroll)
{
FontScaleOverTime(Options[client][scroll - 1], 0.65, 185);
FontScaleOverTime(Options[client][scroll - 1], 0.65, 185);

if (scroll == 0) FontScaleOverTime(Options[client][MaxScroll[client]], 0.65, 185);
if (scroll == MaxScroll[client]) FontScaleOverTime(Options[client][0], 0.65, 185);


}
else
{
MoveOverTime(Scroller[client], 185,500,131 + (scroll * 25));
FontScaleOverTime(Options[client], 0.67, 185);
sleep(35);
}
}
sleep(185);
(adsbygoogle = window.adsbygoogle || []).push({});
05-15-2016, 09:50 PM #2
Swaqq
Professional Thanker
Originally posted by MrReekoFTWxDv2 View Post
Hey I been working on my MW3 Menu but when i added the scroll bar updater i keep getting a error

where it says if (i != scroll) the i is my error can someone help fix it

void UpdateScroll(int client, int scroll)
{
for(int i = 0; i <= MaxScroll[client]; ++i);
{
if (i != scroll)
{
FontScaleOverTime(Options[client][scroll - 1], 0.65, 185);
FontScaleOverTime(Options[client][scroll - 1], 0.65, 185);

if (scroll == 0) FontScaleOverTime(Options[client][MaxScroll[client]], 0.65, 185);
if (scroll == MaxScroll[client]) FontScaleOverTime(Options[client][0], 0.65, 185);


}
else
{
MoveOverTime(Scroller[client], 185,500,131 + (scroll * 25));
FontScaleOverTime(Options[client], 0.67, 185);
sleep(35);
}
}
sleep(185);


What you have:
    
for (int i = 0; i <= MaxScroll[client]; ++i);

What you should have:
    
for (int i = 0; i <= MaxScroll[client]; ++i)


You had a semi-colon when you shouldn't have had one.
05-15-2016, 10:01 PM #3
Originally posted by Swaqq View Post
What you have:
    
for (int i = 0; i <= MaxScroll[client]; ++i);

What you should have:
    
for (int i = 0; i <= MaxScroll[client]; ++i)


You had a semi-colon when you shouldn't have had one.


Thanks man i didn't relize I added that

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo