[AJUDA] Warnings. -
Darconian - 11.09.2011
Код:
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\pawno\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(1513) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(1515) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(1617) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(7903) : warning 204: symbol is assigned a value that is never used: "org"
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11736) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11737) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11738) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11739) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11740) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11741) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11742) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11743) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(11964) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12097) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12104) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12457) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12457) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12457) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12457) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12999) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(13842) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(13872) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(32595) : warning 203: symbol is never used: "ProvocoBeira"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 8744 bytes
Code size: 1373268 bytes
Data size: 5408280 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 6806676 bytes
24 Warnings.
Um colega me passou a GM pra arrumar umas coisinhas, mas isso ae ta um saco...
A Linha 32595 eu sei arrumar.
Re: [AJUDA] Warnings. -
Hardware - 11.09.2011
Poste as linhas em que estгo dando esses avisos.
Re: [AJUDA] Warnings. -
DreeH - 11.09.2011
Acho que ele passou o gamemode para a pessoa errada, enfim.
Mande as linhas dos warnings/errors.
Re: [AJUDA] Warnings. -
WLSF - 11.09.2011
"set" jб existe. "org" nгo estб sendo usado, use um #pragma unused org
loose identation = alinhamento correto
o warning 202 = pode ter feito algo errado nos 'CreateVehicle' ou qualquer coisa precisa por argumentos.
'provocobeira' faz o mesmo do 'org' #pragma unused ProvocoBeira
Creio que seja isso, mais poste as linhas ai.
Re: [AJUDA] Warnings. -
Darconian - 11.09.2011
Primeiro essas grandes
3193:
pawn Код:
if(listitem == 7) // Huntley
{
ServerInfo[playerid][pCarroModel] = 579;
ServerInfo[playerid][pCarroPreco] = 150000;
format(string,sizeof(string),"Vocк estб comprando um %s por %d",VehiclesName[ServerInfo[playerid][pCarroModel]-400],ServerInfo[playerid][pCarroPreco]);
ShowPlayerDialog(playerid, 15, DIALOG_STYLE_MSGBOX, "Comprando seu Veiculo", string, "Comprar", "Cancelar");
return 1;
}
117306:
pawn Код:
/* HQ Rбdio MIX */
CreateDynamicObject(7657, 787.4609375, -1340.359375, 18.264627456665, 0, 0, 89.324493408203, 300.0);
CreateDynamicObject(7657, 787.25671386719, -1360.3143310547, 18.263717651367, 0, 0, 89.324340820313, 300.0);
CreateDynamicObject(7657, 787.26574707031, -1375.0749511719, 18.329557418823, 0, 0, 89.324340820313, 300.0);
CreateDynamicObject(7657, 777.21832275391, -1385.0466308594, 18.436908721924, 0, 0, 359.99975585938, 300.0);
CreateDynamicObject(7657, 760.88116455078, -1384.9207763672, 18.439277648926, 0, 0, 359.99450683594, 300.0);
CreateDynamicObject(7657, 777.40789794922, -1330.0454101563, 18.26703453064, 0, 0, 178.64379882813, 300.0);
CreateDynamicObject(7657, 757.46813964844, -1329.6379394531, 18.265003204346, 0, 0, 178.64318847656, 300.0);
CreateDynamicObject(7657, 740.240234375, -1329.53125, 18.268165588379, 0, 0, 180.62817382813, 300.0);
Re: [AJUDA] Warnings. -
BrunoBSF - 11.09.2011
dos objetos tente mudar os 300.0 por 300
Re: [AJUDA] Warnings. -
Darconian - 11.09.2011
Tipo, eu mudei de CreateDynamicObjects para CreateObjects e arrumei umas coisinhas e saiu metade dos erros... diminuiu pra 11...
continuam esses:
Код:
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\pawno\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(1512) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(1514) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(1616) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(7902) : warning 204: symbol is assigned a value that is never used: "org"
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12455) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12455) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12455) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12455) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(12997) : warning 217: loose indentation
C:\Documents and Settings\Administrador.CASA.000\Desktop\Brasil World Thug Rpg\Brasil World Thug Rpg\gamemodes\BWT.pwn(13870) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 8744 bytes
Code size: 1379576 bytes
Data size: 5405948 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 6810652 bytes
11 Warnings.
Linha 1514 eu n vejo desalinhamento:
pawn Код:
}
if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
if(ProvocoMorro[playerid] == 1)
{
if(IsPlayerInMorro(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a LSPD Dominaram a Favela Do PAC.",playername);
SendClientMessageToAll(OrgCor(org), string);
GangZoneStopFlashForAll(GZMorro);
GangZoneShowForAll(GZMorro,OrgCor(org));
Dominando[playerid] = 0;
ProvocoMorro[playerid] = 0;
GuerranoMorro = 0;
donomorro = 2;
KillTimer(TempoGuerraMorro);
GivePlayerMoney(playerid,5000);
return 1;
}
else
{
SendClientMessage(playerid, OrgCor(org), "Vocк Nгo Estб Na Favela do PAC.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZMorro);
GangZoneShowForAll(GZMorro, COLOR_WHITE);
ProvocoMorro[playerid] = 0;
GuerranoMorro = 0;
donomorro = 0;
KillTimer(TempoGuerraMorro);
return 1;
}
}
return 1;
}
O erro do listitem ja resolvi
Re: [AJUDA] Warnings. -
Hardware - 11.09.2011
Qual й o erro que dб ali no listitem ?
Re: [AJUDA] Warnings. -
WLSF - 11.09.2011
posta a linha 7902
Re: [AJUDA] Warnings. -
Darconian - 11.09.2011
7902
pawn Код:
new org = GetPlayerOrg(playerid);
if(donomorro == 0)
{
GangZoneShowForPlayer(playerid, GZMorro, COLOR_WHITE);
}
if(donobeira == 0)
{
GangZoneShowForPlayer(playerid, GZBeira, COLOR_WHITE);
}
if(MapIconsShown[playerid] != 1)
{
MapIconsShown[playerid] = 1;
SetPlayerMapIcon(playerid, 1, 1461.7228,-1014.4504,26.5699, 52, 0);//Banco (LS)
SetPlayerMapIcon(playerid, 2, 1791.2120,-1164.6317,23.8281, 18, 0);//Loja de Armas (LS) 1
SetPlayerMapIcon(playerid, 3, 1498.3601,-1583.0319,13.5469, 50, 0);//Restaurante (LS)
SetPlayerMapIcon(playerid, 4, 1481.0006,-1771.8022,18.7958, 35, 0);//Prefeitura (LS)
SetPlayerMapIcon(playerid, 5, 1310.1266,-1367.8123,13.5408, 32, 0);//Paintball (LS)
SetPlayerMapIcon(playerid, 6, 2244.4622,-1665.3223,15.4766, 45, 0);//Binco 1 (LS)
SetPlayerMapIcon(playerid, 7, 2229.9043,-1721.4823,13.5636, 54, 0);//Academia (LS)
SetPlayerMapIcon(playerid, 8, 1836.7389,-1682.4823,13.3354, 48, 0);//Alhambra
SetPlayerMapIcon(playerid, 9, 1177.9160,-1323.2394,14.0943, 22, 0);//Hospital 1 (LS)
SetPlayerMapIcon(playerid, 10, 1555.3241,-1675.6160,16.1953, 30, 0);//Policia Militar
SetPlayerMapIcon(playerid, 11, 2223.0635,-1168.2198,25.7266, 12, 0);//Spawn Civil (LS)
SetPlayerMapIcon(playerid, 12, 1352.3319,-1759.1997,13.5078, 17, 0);//24/7 LS 1
SetPlayerMapIcon(playerid, 13, 2165.3955,-1016.3597,62.7286, 16, 0);//Complexo Do Alemгo
SetPlayerMapIcon(playerid, 14, 1769.6429,-2038.1069,13.5197, 30, 0);//LSPD
SetPlayerMapIcon(playerid, 15, 2761.8667,-2440.0581,13.5130, 62, 0);//Base Militar (LS)
SetPlayerMapIcon(playerid, 16, 368.6637,-2043.6067,7.6719, 61, 0);//Aryan Brotherhood
SetPlayerMapIcon(playerid, 17, 2290.9570,-1507.8843,26.8487, 60, 0);//Texas
SetPlayerMapIcon(playerid, 18, -1156.2018,-944.6836,129.2188, 44, 0);//Sabotadores
SetPlayerMapIcon(playerid, 19, 766.4915,-1364.7201,13.5189, 57, 0);//Rбdio MIX
SetPlayerMapIcon(playerid, 20, 1629.3716,-1903.3729,13.5531, 25, 0);//Pegar Materiais
SetPlayerMapIcon(playerid, 21, 1931.0375,-1778.8745,13.5469, 55, 0);//Posto
SetPlayerMapIcon(playerid, 22, 327.5547,-1512.2546,36.0325, 30, 0);//ROTA
}
return 1;
}