SA-MP Forums Archive
[Ajuda] [ Ajuda ] Avisos na GM - 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] [ Ajuda ] Avisos na GM (/showthread.php?tid=542059)



[ Ajuda ] Avisos na GM - Jao157 - 16.10.2014

Como eu tiro esses Avisos da minha GM?

pawno\include\mSelection.inc(59 : warning 219: local variable "f" shadows a variable at a preceding level
gamemodes\NewVirtualCity.pwn(2379) : warning 204: symbol is assigned a value that is never used: "CP_50"
gamemodes\NewVirtualCity.pwn(2380) : warning 204: symbol is assigned a value that is never used: "CP_51"
gamemodes\NewVirtualCity.pwn(2381) : warning 204: symbol is assigned a value that is never used: "CP_52"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Re: [ Ajuda ] Avisos na GM - MultiKill - 16.10.2014

As variбveis CP_50, CP_51 e CP_52 nгo estгo sendo usadas.

E a variбvel f existe em um nнvel anterior, certamente existe uma em seu game mode e um na include mSelection.

Exemplo:
pawn Код:
//Topo da Game mode

new variavel;


public OnPlayerSpawn(playerid)
{
    new variavel;
    return 1;
}
Dara o aviso por existir duas variбveis com o mesmo nome sendo uma global e uma local, quando a duas globais ou duas locais com o mesmo nome darб um erro.

Se nгo sabe o que й uma variбvel global e uma local olhe este tutorial.

Tutorial aqui.