Posts: 71
Threads: 18
Joined: Aug 2015
pawn Код:
C:\Users\CraTzy\Desktop\TDM\pawno\include\MTA_LOAD.inc(226) : warning 219: local variable "mapValues" shadows a variable at a preceding level
C:\Users\CraTzy\Desktop\TDM\gamemodes\dmrace.pwn(1100) : warning 204: symbol is assigned a value that is never used: "ServerVoted"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Codes telling all
Posts: 152
Threads: 24
Joined: Aug 2014
Reputation:
0
its nothing these are just warnings.. not errors
Posts: 136
Threads: 19
Joined: Aug 2014
Reputation:
0
They are just warnings, you will be able to compile but it may not be perfectly working.
Top warning just means it's defined twice in the same area
Bottom warning just means you aren't doing anything with "ServerVoted" that you created
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
In line 226, change the variable mapValues to something else
second one ... well make a server vote system (?) and use the variable xD
Posts: 2,368
Threads: 27
Joined: Jun 2010
Reputation:
0
The error one is showing that you already have a global or local variable namely "mapValues", use something else, or alter the original variable "mapValues" to fix the warning.
The second error is showing that you've created a variable ServerVoted but you haven't use it. Either use it or remove it.
Posts: 71
Threads: 18
Joined: Aug 2015
the first warning dos not allow gamemode to run !
Posts: 626
Threads: 46
Joined: Oct 2014
Reputation:
0
show us that line. But u can fix as other people suggest you to fix ur warings work
Posts: 1,208
Threads: 36
Joined: Apr 2015
Example for warning 219
PHP код:
new var1, var2;
stock function1(var1,var2){
var1 = 0;
var2 = 0;
}
\raf.pwn(12) : warning 219: local variable "var1" shadows a variable at a preceding level
\raf.pwn(12) : warning 219: local variable "var2" shadows a variable at a preceding level
Example for warning 203, 204
PHP код:
new var1, var2;
stock function1(){
var1 = 0;
}
//<- var2 never used
\raf.pwn(12) : warning 204: symbol is assigned a value that is never used: "var1"
\raf.pwn(12 -- 278) : warning 203: symbol is never used: "var2"
Posts: 71
Threads: 18
Joined: Aug 2015
fixed the Inc file
now work a bit but cant host it :O