Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial moving bar issue. #16

Open
kylesmith09 opened this issue Sep 15, 2016 · 4 comments
Open

Initial moving bar issue. #16

kylesmith09 opened this issue Sep 15, 2016 · 4 comments

Comments

@kylesmith09
Copy link

https://www.youtube.com/watch?v=6WNmz0wmJy0

At around the 3 second mark when I start the ProgressBar, it goes minus the min value. It looks like -2 or something.

This is my code, I've added checks to see the value of the bar and there's nothing negative.

http://pastebin.com/Ysk6Ckmh

@Crayder
Copy link

Crayder commented Sep 15, 2016

Show your create line for ServerAccounts[i][ProgressBar]

Also, float's should ALWAYS be represented with a decimal.
if(next > 100) { next = 100; } should be if(next > 100.0) { next = 100.0; }

Also, that foreach notation is deprecated. The correct notation now is foreach(new i: Player).

@kylesmith09
Copy link
Author

Thanks for your recommendation @Crayder - I've gone and addressed what you have highlighted.

Unfortunately it still hasn't fixed this issue but thanks for helping with my coding best practice.

@Crayder
Copy link

Crayder commented Sep 16, 2016

Those things I addressed weren't for the problem at hand, I was just trying to help you out.

But you didn't do this:

Show your create line for ServerAccounts[i][ProgressBar]

@kylesmith09
Copy link
Author

@Crayder

ServerAccounts[playerid][ProgressBar] = CreatePlayerProgressBar(playerid, 125.04, 315.52, 55.5, 4.1, 0x11acffFF, 100.0, BAR_DIRECTION_RIGHT);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants