[Help]How remove this warning? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help]How remove this warning? (
/showthread.php?tid=142345)
[Help]How remove this warning? -
eDz0r - 18.04.2010
Код:
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
Line11718
Код:
tmp = strtok(cmdtext, idx);
Line11719
Re: [Help]How remove this warning? -
Rac3r - 18.04.2010
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"
Re: [Help]How remove this warning? -
eDz0r - 18.04.2010
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.....
Re: [Help]How remove this warning? -
[SsC11]MAVERIK - 18.04.2010
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
Re: [Help]How remove this warning? -
eDz0r - 18.04.2010
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
Re: [Help]How remove this warning? -
aircombat - 18.04.2010
delete this ::::::
Re: [Help]How remove this warning? -
eDz0r - 18.04.2010
Quote:
|
Originally Posted by Etch ❽ H
|
you are so smart my friend do you think i do not delete it?? it gave me more errors
Re: [Help]How remove this warning? -
ineoncore - 18.04.2010
Quote:
|
Originally Posted by eDz0r
Quote:
|
Originally Posted by Etch ❽ H
|
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.
Re: [Help]How remove this warning? -
aircombat - 18.04.2010
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
Re: [Help]How remove this warning? -
Sergei - 18.04.2010
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.