Posts: 152
Threads: 68
Joined: Dec 2014
17.08.2015, 21:07
(
Последний раз редактировалось Rodri99; 03.09.2015 в 23:25.
)
CLOSED.
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
1. Remove new x; on line35.
2. Looks like pName is already a global variable, so delete new pName[24] or rename it.
Posts: 136
Threads: 18
Joined: Feb 2015
Can you write down the code into a
or into a PHP code? SO I Can know the pawno code and the errors
Posts: 547
Threads: 57
Joined: Dec 2010
Both of the warnings basically means that you already have the variable in question defined.
In the first case, you have
, however a few lines down in the loop, you redefine x in the loop as
which causes the warnings. Just either get rid of the "new x = 0;" or use "for(x, m = GetMaxPlayers(); x<m; ++)" to fix the first one.
The second one is more than likely the case that somewhere in the script, pName is being declared a global variable, so you need to look wherever else pName is being used.
EDIT: Everyone literally gathered on this thread lol
Posts: 152
Threads: 68
Joined: Dec 2014
I changed new x to new xip but i got this:
C:\Users\Rodrigo\Desktop\xef-origenale\Gamemodes\xef.pwn(1737) : warning 219: local variable "xip" shadows a variable at a preceding level
C:\Users\Rodrigo\Desktop\xef-origenale\Gamemodes\xef.pwn(1735) : warning 204: symbol is assigned a value that is never used: "xip"
Posts: 415
Threads: 1
Joined: Sep 2012
Reputation:
0
You must change only one new x to new xip
Posts: 152
Threads: 68
Joined: Dec 2014
17.08.2015, 21:17
(
Последний раз редактировалось Rodri99; 03.09.2015 в 23:26.
)
INFO CLOSED.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
You should've just removed it like Sergei said. The instruction could hardly be any more clear.
Posts: 507
Threads: 29
Joined: Jul 2014
Reputation:
0
Why do you declare variables, if you know that you will not use it ?