Warning 219 - 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 219 (
/showthread.php?tid=466389)
Warning 219 -
radiobizza - 27.09.2013
PHP код:
C:\Users\Windows 7\Desktop\New folder (2)\gamemodes\Indungi.pwn(14530) : warning 219: local variable "playermoney" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Line 14530:
PHP код:
new playermoney;
How to fix ?
Re: Warning 219 - Patrick - 27.09.2013
That means, you have 2 local/global variable, try to CTRL + F and search for new playermoney;, If it appears as a two, you must change the other variable name or put it inside the callback or command etc.. where ever you need that variable
Re: Warning 219 -
radiobizza - 27.09.2013
Quote:
Originally Posted by pds2012
That means, you have 2 local variable, try to CTRL + F and search for new playermoney;, If it appears as a two, you must change the other variable name or put it inside the callback or command etc.. where ever you need that variable
|
I don't know where ..
Re: Warning 219 -
Konstantinos - 27.09.2013
You've declared playermoney as global variable and you are trying to declare it again as local. Change the name to something else.
Re: Warning 219 - Patrick - 27.09.2013
Quote:
Originally Posted by radiobizza
I don't know where ..
|
As I said
CTRL +F and on the search bar find
new playermoney;
As what Konstantinos and I said, you must change the variable name or place it inside a callback or a command and make sure it is returned return 1;