SA-MP Forums Archive
~Warning Dutils - 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)
+--- Thread: ~Warning Dutils (/showthread.php?tid=389870)



~Warning Dutils - dennissk - 03.11.2012

Hello friends, I am having my warnings about gameplay, anyone have any idea why this is so, because I already gave back everything and nothing. regards


dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level

dutils.inc(20) : warning 201: redefinition of constant/macro (symbol "MAX_STRING")
dutils.inc(2 : warning 219: local variable "string" shadows a variable at a preceding level
dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 6920 bytes
Code size: 1016104 bytes
Data size: 2582384 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4679 cells (18716 bytes)
Total requirements: 3621792 bytes

8 Warnings.


Re: ~Warning Dutils - Azazelo - 03.11.2012

dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level

You have define "string" like global variable and you do not have need for :

Quote:

new string[128];// in line 239 delete

Same for line : 28;132;172;280;337;379

And for :

dutils.inc(20) : warning 201: redefinition of constant/macro (symbol "MAX_STRING")

In this line you redefine already defined constant/macro (symbol "MAX_STRING") and if this is not you intention
then look you may be use "=" instead "==".

And for:
Stack/heap size: 16384 bytes; estimated max. usage=4679 cells (18716 bytes)
You Stack/heap size: 16384 bytes is and you using (18716 bytes)


I hope this help.


Re: ~Warning Dutils - dennissk - 03.11.2012

28, 132, 172, 280, 337, 379

Hello, is that in these lines, there is no string, simply other lines, and maybe it's something Dutils, I have no idea