[AJUDA] WARNINGS !
#1

TIPO queria saber oq akeles warning pode fazer ao game mode , queria tirar essa duvida !
Код:
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(109) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(119) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1422) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(2120) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346) : warning 204: symbol is assigned a value that is never used: "CarroTunado2"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "adminname"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "countcolor"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "incriminato"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "player"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


17 Warnings.
ISSO E DO MEU GM
Reply
#2

manda as liinhas
Reply
#3

Tipo nao e isso , eu sei remover os warnings so queria saber se prejudica o Game Mode
Reply
#4

baixa o includes 0.3a , vai tirar algumas warns
Reply
#5

cara pelo que entendo,warnings nao altera e da erro em nda em seu GM
Reply
#6

Ja ouvi "buatos" que pode sim , mas queria confirma !
Reply
#7

Quote:
Originally Posted by [BSP
Higor ]
TIPO queria saber oq akeles warning pode fazer ao game mode , queria tirar essa duvida !
Код:
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Pawno 0.2\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(109) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(119) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1422) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(2120) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346) : warning 204: symbol is assigned a value that is never used: "CarroTunado2"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "adminname"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "countcolor"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "incriminato"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "player"
C:\Documents and Settings\Usuario\Desktop\SA-MP\Brasil Mata-Kill 2010\gamemodes\Mata-Kill-Gang.pwn(1346 -- 2168) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


17 Warnings.
ISSO E DO MEU GM
O seu include dutils ta com algum problema em definir a String e sobre causar problemas acredito eu que cause problemas
Mas depende muito das warnings que й
Pleo meu ver a sua linha 1346 estб cheio de
pawn Код:
new ...
Retire os que estб dizendo ali como o CarroTunado2 o Adminname e outros ai diminui
O pior era um FS que eu tinha achado:
217 Warnings e resolvi tudo colocando
pawn Код:
#pragma tabsize 0
Reply
#8

Olha os erros de "shadows a variable at a preceding level" й que jб foram feitas com o mesmo nome 2 ou mais vezes. Renomeia/altera no gamemode se conseguires.

O "warning 202: number of arguments does not match definition" posta as linhas para se corrigir.

O "warning 204: symbol is assigned a value that is never used: "CarroTunado2"" -> Й por exemplo teres new CarroTunado2; CarroTunado2 = QualquerCoisa. E depois nгo ser usado o CarroTunado2 em mais outro lugar.

O "warning 203: symbol is never used:" Ou removes manualmente o que nгo foi usado ou utlizas no topo to gamemode #pragma unused nomeaqui.

Quando ao #pragma tabsize, isso й por causa da identaзгo, isso sу ignora o warning. Aprendam a identar.

Quanto aos warnings, hб warnings que podem nгo afectar no funcionamento normal, mas tem muitos deles que afectam directamente ou indirectamente. No caso do "never used" em que algo no include nгo foi utilizado, nгo faz nada, mas convйm sempre ter um cуdigo limpo sem erros e warnings. Os warnings sгo tгo importantes como os erros. Esta comparaзгo nгo tem pйs nem cabeзa, mas sem erros e warnings pode estar algo mal.. E nгo, a culpa nгo й do compilador, й vossa.

@warning 202: number of arguments does not match definition:

Й tipo, o nъmero de argumentos dentro de ( ) nгo ser igual ao nъmero de argumentos anteriormente prй-definidos.

Por exemplo no SendClientMessage, os argumentos prй-definidos foram (playerid, color, const message[]). Se utilizares com argumentos a mais vai te dar esse warning.


Exemplo:

pawn Код:
SendClientMessage(playerid, COLOR_RED, "mensagem", "lol");
Reply
#9

Obrigado Gente , Russo e Blue_Alien , Tipo Hi muito 217 Warnings KKKKKKKKK , !
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)