help me please getting warns
#1

SOLVED
Reply
#2

You could start by developing your own gamemode instead of using Beckzy's before you understand what you're doing. On a side note: The warnings clearly state what you've done wrong. Look at the lines where you've been directed to and see how the times you've attempted to alter Beckzy's variables are excessive or conflicting with the already present code. If you really need help, you'll need to post the section of code which is generating the errors. Even coders such as ****** may be smart, but still not mind-readers.
Reply
#3

Those warnings aren't critical as such, the only thing that happens is that some variables are being shadowed.

Example:

Код:
new tmp = 5; // First

tmp = 6;

new tmp = 7; // Second

tmp = 8;
After declaring tmp for the second time the first one becomes inaccessible, but this isn't an error.
When setting tmp to 8, the first one remains 6.

It purely depends on where it happens, but if the first one isn't needed at that point this does not matter at all. It's technically only bad practice.

To fix it, rename the first or the second variable and make sure to use the right ones after that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)