Warning about a string - 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: Warning about a string (
/showthread.php?tid=186654)
Warning about a string -
juuleman - 30.10.2010
Hey Guys,
I'm working on some things in my script and i added a string.
But now i get alot of these warnings:
pawn Код:
(5578) : warning 219: local variable "string" shadows a variable at a preceding level
Does anybody know what they mean?
Thanks
Re: Warning about a string -
<Weponz> - 30.10.2010
Quote:
Originally Posted by juuleman
Hey Guys,
I'm working on some things in my script and i added a string.
But now i get alot of these warnings:
pawn Код:
(5578) : warning 219: local variable "string" shadows a variable at a preceding level
Does anybody know what they mean?
Thanks
|
It means theres another one....Just change that string IN THE CODE ITS SHOWING THE ERROR ON change the "String" to "Str"
If you dont understand post the whole code with errors and ill do it for u..
Re: Warning about a string -
iggy1 - 30.10.2010
Change the name of the string array, the error is because you have a global variable and local variable both called string.
Re: Warning about a string -
<Weponz> - 30.10.2010
Quote:
Originally Posted by iggy1
Change the name of the string array, the error is because you have a global variable and local variable both called string.
|
Hmm thats why it happens "Tecnically"...Learn something new every day xD
Re: Warning about a string -
juuleman - 30.10.2010
Thanks for your help, it works.