[DUV]Warnings
#1

Olб, estou com esses 6 Warnings, era 9, mas consegui corrigir 3!
Uma observaзгo: os 3 ultimos Warnings, estгo na linha 4930, mas essa linha nгo existe, vai atй б 4929!

Код:
D:\Arquivos de programas\Pawno\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
D:\oficial.pwn(3972) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
D:\oficial.pwn(3994) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
D:\oficial.pwn(4930) : warning 203: symbol is never used: "RandomMainW"
D:\oficial.pwn(4930) : warning 203: symbol is never used: "ret_memcpy"
D:\oficial.pwn(4930) : warning 203: symbol is never used: "strtok"
Alguem poderia me ajudar corrigir esses Warnings? Agradeзo desde jб!
Reply
#2

Nesses 3 que estгo na linha que nгo existe faz search por eles no Gamemode, que vais encontrar.
Reply
#3

Jб pesquise, mas o ret_memcpy e o strtok nгo existem no gamemode!

Jб o RandomMainW tem um sу:

Код:
new RandomMainW[5][2] =
{
	{29, 768},
	{30, 1024},
  {31, 1024},
  {29, 768},
  {31, 1024}
};
Reply
#4

Kara, eu sou iniciante e acho isso simples, soh procura por esses 3 ultimos warnings e deleta,
sabe o q kйr dizer: "simbol is never used"?
"simbolo nunca eh usado"
voce criou alguns new's e naum usou, entaum esses new's q naum usasse, pode deleta
Espero ter ajudado
Reply
#5

Quote:
Originally Posted by BiGGaMeS
Kara, eu sou iniciante e acho isso simples, soh procura por esses 3 ultimos warnings e deleta,
sabe o q kйr dizer: "simbol is never used"?
"simbolo nunca eh usado"
voce criou alguns new's e naum usou, entaum esses new's q naum usasse, pode deleta
Espero ter ajudado
Leia antes de postar! Olha meu post anterior!
Reply
#6

Quote:

D:\Arquivos de programas\Pawno\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level

No include YSI_objects.own, hб uma funзгo/variбvel que se chama "set", e no include dutils.inc hб uma funзгo com o mesmo nome, portanto, abra o dutils.inc, e renomeia ela.

Quote:

D:\oficial.pwn(3972,3994) : warning 219: local variable "PlayerName" shadows a variable at a preceding level

Vocк criou uma variбvel com o nome "PlayerName", mesmo jб existindo uma funзгo chamada PlayerName(), portanto, use outro nome para esta variбvel, e troque todas as ocorrкncias apenas do uso da variбvel.

Quote:

D:\oficial.pwn(4930) : warning 203: symbol is never used: "RandomMainW"

Apenas adicione um "stock" depois do "new" dessa linha.

Quote:

D:\oficial.pwn(4930) : warning 203: symbol is never used: "ret_memcpy"
D:\oficial.pwn(4930) : warning 203: symbol is never used: "strtok"

Essas duas funзхes estгo no include dutils.inc, abra ele, e apenas coloque "stock" no inicio de cada funзгo.
Reply
#7

Valew aew toribio!

----------------EDIT-----------------

Aproveitando o topico, eu to tentando fazer um text draw usando o Text Draw Maker, mas tб dando esse erro!

Код:
error 017: undefined symbol "ShowTextdrawForPlayer"
linha:
Код:
ShowTextdrawForPlayer(playerid,Variable_Name);
PS: jб coloquei no topo:
Код:
new Text:Variable_Name;
Jб pesquisei, mas с achei nada q me ajudou! Alguem sabe como resolver!?
Reply
#8

EDIT: Й TextDrawShowForPlayer, e nгo ShowTextdrawForPlayer:

pawn Код:
TextDrawShowForPlayer(playerid, Variable_Name);
Reply
#9

Quote:
Originally Posted by Toribio
Pawn й case sensitive, e a funзгo ShowTextdrawForPlayer estб escrita "Textdraw", e nгo "TextDraw", por isso o erro.

pawn Код:
ShowTextDrawForPlayer(playerid, Variable_Name);
Fiz do modo que vc disse mas esta dando o MESMO erro!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)