[Help]How remove this warning?
#1

Код:
D:\Edy\GTA San Andreas\Servere\ReMaT RP\gamemodes\MrIllusion\gamemodes\remat_rp.pwn(11717) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      9536 bytes
Code size:     1603504 bytes
Data size:     5377344 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4359 cells (17436 bytes)
Total requirements: 7006768 bytes

1 Warning.
The Lines

Line11717
Код:
new mod = 100;
Line11718
Код:
tmp = strtok(cmdtext, idx);
Line11719
Код:
if(!strlen(tmp))
Reply
#2

pawn Код:
warning 219: local variable "mod" shadows a variable at a preceding level
pawn Код:
warning 1337: "mod" has already been created, change "mod" to something else, like "modX"
Reply
#3

Quote:
Originally Posted by Rac3r
pawn Код:
warning 219: local variable "mod" shadows a variable at a preceding level
pawn Код:
warning 1337: "mod" has already been created, change "mod" to something else, like "modX"
More Erros.....
Reply
#4

Try to simple remove line 11717. If you get more errors insert at the top of your script new mod = 100; and delete it elsewhere
Reply
#5

Quote:
Originally Posted by [IF
MavericK ]
Try to simple remove line 11717. If you get more errors insert at the top of your script new mod = 100; and delete it elsewhere
not work
Reply
#6

delete this ::::::
Код:
new mod = 100;
Reply
#7

Quote:
Originally Posted by Etch ❽ H
delete this ::::::
Код:
new mod = 100;
you are so smart my friend do you think i do not delete it?? it gave me more errors
Reply
#8

Quote:
Originally Posted by eDz0r
Quote:
Originally Posted by Etch ❽ H
delete this ::::::
Код:
new mod = 100;
you are so smart my friend do you think i do not delete it?? it gave me more errors
Well, people try to help you and your being an asshole..
I dont think anyone will help you.
Reply
#9

then that warning was hiding the errors stupid at least show some respect to the people who help u and try to be smart to show the errors
Reply
#10

Quote:
Originally Posted by eDz0r
Quote:
Originally Posted by [IF
MavericK ]
Try to simple remove line 11717. If you get more errors insert at the top of your script new mod = 100; and delete it elsewhere
not work
How is tha possible?

And as you can see you are using to much heap, so fix that otherwise it won't work very well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)