SA-MP Forums Archive
need small help :( - 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: need small help :( (/showthread.php?tid=593149)



need small help :( - CraTzy - 02.11.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


Re: need small help :( - Alpha000 - 02.11.2015

its nothing these are just warnings.. not errors


Re: need small help :( - Pawnify - 02.11.2015

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


Re: need small help :( - PrO.GameR - 02.11.2015

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


Re: need small help :( - iZN - 02.11.2015

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.


Re: need small help :( - CraTzy - 03.11.2015

the first warning dos not allow gamemode to run !


Re: need small help :( - HydraHumza - 03.11.2015

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


Re: need small help :( - AbyssMorgan - 03.11.2015

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" 



Re: need small help :( - CraTzy - 03.11.2015

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