Warnings on including - 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: Warnings on including (
/showthread.php?tid=527850)
Warnings on including -
Tommboow - 24.07.2014
Its maybe a n00b question but i need help with it.
When i include:
I'm getting the following warnings:
Код:
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
i did search the forums but couldn't find anything about it.
Re: Warnings on including -
Stinged - 24.07.2014
You have a global variable called "string" in your gamemode / filterscript.
And sscanf has a local variable called "string", so they mix up.
Rename your variable to something else, maybe "gstring"
Re: Warnings on including -
Tommboow - 24.07.2014
OMG that was a stupid one
![Smiley](images/smilies/smile.png)
Thnx !