need small help :(
#1

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
Reply
#2

its nothing these are just warnings.. not errors
Reply
#3

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
Reply
#4

In line 226, change the variable mapValues to something else
second one ... well make a server vote system (?) and use the variable xD
Reply
#5

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.
Reply
#6

the first warning dos not allow gamemode to run !
Reply
#7

show us that line. But u can fix as other people suggest you to fix ur warings work
Reply
#8

Example for warning 219
PHP код:
new var1var2;
stock function1(var1,var2){
    
var1 0;
    
var2 0;
}
\
raf.pwn(12) : warning 219local variable "var1" shadows a variable at a preceding level
\raf.pwn(12) : warning 219local variable "var2" shadows a variable at a preceding level 
Example for warning 203, 204
PHP код:
new var1var2;
stock function1(){
    
var1 0;
    
}
//<- var2 never used
\raf.pwn(12) : warning 204symbol is assigned a value that is never used"var1"
\raf.pwn(12 -- 278) : warning 203symbol is never used"var2" 
Reply
#9

fixed the Inc file now work a bit but cant host it :O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)