SA-MP Forums Archive
[Ajuda] Warnings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Warnings (/showthread.php?tid=346231)



[Ajuda] Warnings - Tiago_Brandao - 27.05.2012

Bem alguйm me pode ajudar com estes Warning?

pawn Код:
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\pawno\include\dutils.inc(443) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\pawno\include\dudb.inc(83) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\pawno\include\dudb.inc(112) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\pawno\include\dudb.inc(129) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\pawno\include\dudb.inc(177) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(301) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(560) : warning 219: local variable "cmd" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(561) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(602) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(716) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(814) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(852) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(903) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(945) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(967) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(994) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1124) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1176) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1228) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1280) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1336) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1385) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1422) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1448) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1471) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1501) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1520) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1607) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1626) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1644) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1726) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1760) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1810) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1847) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1872) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1940) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(1981) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2024) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2070) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2098) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2125) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2152) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2212) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2249) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2304) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2323) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2373) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2467) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2496) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2539) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2560) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2599) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2633) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2667) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2739) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2806) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2882) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2927) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(2962) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3108) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3650) : warning 203: symbol is never used: "PlayerInfo"
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3650) : warning 203: symbol is never used: "cmd"
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3650) : warning 203: symbol is never used: "idx"
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3650) : warning 203: symbol is never used: "tmp"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           4088 bytes
Code size:           173428 bytes
Data size:           324532 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5008 cells (20032 bytes)
Total requirements:  518432 bytes

65 Warnings.



Re: [Ajuda] Warnings - 4LiSs0N - 27.05.2012

Tem Varias "tmp"
lhe aconselho Deixar so uma no Topo.


Re: [Ajuda] Warnings - Tiago_Brandao - 27.05.2012

hum mas tenho uma duvida
pawn Код:
if(strcmp(cmd, "/registrar", true) == 0) {
        new tmp[256];
        tmp = strtok(cmdtext, idx);
        // The command shouldn't work if an account with this
        // nick already exists
        if (udb_Exists(PlayerName(playerid))) {
            SendClientMessage(playerid, COLOR_RED, "Tб querendo se registrar duas vezes??? use /logar");
            return 1;
Imagine eu tirando esse tmp Nгo vai dar erro?


Re: [Ajuda] Warnings - Tiago_Brandao - 27.05.2012

Prontos eu ja resolvi esse mas continuou me a dar um warning pode mo resolver ?

pawn Код:
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3647) : warning 203: symbol is never used: "PlayerInfo"



Re: [Ajuda] Warnings - 4LiSs0N - 27.05.2012

Procure por isso "PlayerInfo" no seu Code e Apague-o
pois nгo esta usando


Re: [Ajuda] Warnings - Tiago_Brandao - 27.05.2012

Mas Eu sу tenho OnPlayerinfo nao tenho sу PlayerInfo alias tenho porque o meti agora para a organizaзгo


Re: [Ajuda] Warnings - Private200 - 27.05.2012

If you have so much warnings , then your really lucky because you broke world warnings record :P, but i should tell you something , i have 5 warnings and it is the same , they still works there is no problem if you have warnings !!

If this helped rep me


Re: [Ajuda] Warnings - Tiago_Brandao - 27.05.2012

Ja agora me ajudem aqui neste erro:

C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3647) : error 010: invalid function or declaration
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3651) : error 010: invalid function or declaration
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3653) : error 010: invalid function or declaration
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3654) : error 010: invalid function or declaration
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3659) : error 010: invalid function or declaration
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3662) : warning 203: symbol is never used: "PlayerB"
C:\Users\PC\Desktop\GTA SERVER\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3662) : warning 203: symbol is never used: "onPlayerInfo"

pawn Код:
if(strcmp(cmd, "/convidar", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        new PlayerB;
        if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /convidar [id]");
        PlayerB = strval(tmp);
        if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб conectado");
        if(PlayerInfo[playerid][GNR] >= 6)
        {
            PlayerInfo[PlayerB][GNR] = 1;
            SendClientMessage(PlayerB, Branco, "Vocк entrou na GNR");
            SetPlayerColor(PlayerB, Cor_GNR);
            return 1;
        }