[Ajuda] Record dos Warning '-'
#1

Tava 48 warnings ai eu resolvi e deixei pra 33:

pawn Код:
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(2683) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(2885) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(3201) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(3266) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(6233) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(10310) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(10329) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11263) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11285) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11307) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11329) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11354) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11379) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11402) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11425) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11447) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11469) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11491) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11513) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11535) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(11556) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(12739) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(12782) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(12907) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(13378) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(13400) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(13445) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15191) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15192) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15193) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15231) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15274) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(19415) : warning 225: unreachable code
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           7124 bytes
Code size:           900292 bytes
Data size:          1379240 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2303040 bytes

33 Warnings.
Reply
#2

LooL ' voce deve ter colcoado um comando sem fechamento.
Veirfique e revise todo seu gamemode !

-______________________________-
Te ajuudei enntao dб +REP aeew !
Reply
#3

pawn Код:
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15193) : warning 219: local variable "Z" shadows a variable at a preceding level
Todos que tem este erro, jб tem mais de uma definiзгo, entгo pode deletar uma das variбveis.

pawn Код:
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15231) : warning 202: number of arguments does not match definition
Argumentos invбlidos e o Resto mande as Linhas
Reply
#4

consegui resolver alguns:

pawn Код:
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(2885) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(3201) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(3266) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(13445) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15191) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15192) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15193) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15231) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15274) : warning 225: unreachable code
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(19415) : warning 225: unreachable code
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           7124 bytes
Code size:           900268 bytes
Data size:          1379236 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2303012 bytes

10 Warnings.
Reply
#5

se puder mandar as linhas ajudaria
Reply
#6

estou resolvendo aos poucos oq eu n consegui venho aki ja volto!
Reply
#7

pawn Код:
Header size:           7124 bytes
Code size:           900292 bytes
Data size:          1379240 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2303040 bytes
Isto nгo й bom, algumas funзхes irгo deixar de funcionar por este erro devido a falta de espaзo da stack/heap, sobre os outros erros, falta de chaves.

para consertar a parte da stack/heap adicionar no topo do gm :
pawn Код:
#pragma dynamic //aqui vocк colocar a quantidade de espaзo que deseja liberar, eu sei que vocк й lerdo e nгo vai ler CORRETAMENTE.

EX:
#pragma dynamic 1000

//deixa de acordo com o necessбrio.

Nem sei porque lhe ajudo, Vocк nгo merece.
Reply
#8

Vocк ajuda porque quer ninguem й obrigado a ajudar, se quiser ajudar ajude, se nao quiser nгo precise, ja resolvi sozinho demais errors, agora esses 3 n consigo:

pawn Код:
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15188) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15188) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(15188) : warning 219: local variable "Z" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           7124 bytes
Code size:           900136 bytes
Data size:          1379236 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2302880 bytes

3 Warnings.
pawn Код:
new Float:X, Float:Y, Float:Z;
Reply
#9

sobre estes 3 erros sгo porque jб existem estes nomes, apenas muda-los.

Cara, faзa o que eu disse lб encima... pois ficar com isso bugara alguns dos comandos pois falta espaзo para alocar.
Reply
#10

Ja fiz obrigado + REP pra vc '-'
Mais tipo qual devo apagar:

pawn Код:
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new string[256];
// Sistema de concessionaria
    if ( dialogid == 120+119 )
    {
        if ( response )
        {

            new Float:X, Float:Y, Float:Z;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)