28.12.2017, 01:34
Estou com estes Warnings e nгo sei como resolver:
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(10 861) : warning 213: tag mismatch
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(41 466) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(41 599) : warning 202: number of arguments does not match definition
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(44 773) : warning 213: tag mismatch
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(44 774) : warning 213: tag mismatch
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(68 95
: warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Warnings.
Linha: 10861
Linha: 41466
Linha: 41599
Linha: 44773 e 44774
Linha: 68958
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(10 861) : warning 213: tag mismatch
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(41 466) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(41 599) : warning 202: number of arguments does not match definition
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(44 773) : warning 213: tag mismatch
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(44 774) : warning 213: tag mismatch
C:\Users\Natan\Desktop\Projeto\gamemodes\GM.pwn(68 95

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Warnings.
Linha: 10861
PHP код:
CMD:carregarposicao(playerid)
{
if(PodeCarregarUltimaPosicao[playerid] == 1)
{
new string2[256];
format(string2, sizeof(string2), Pasta_Contas, PlayerName(playerid));
new Float:pPos[3];
pPos[0] = DOF2_GetFloat(string2, "uPosX");
pPos[1] = DOF2_GetFloat(string2, "uPosY");
pPos[2] = DOF2_GetFloat(string2, "uPosZ");
SendClientMessage(playerid, 0x9000f0FF, "Ultima posiзгo carregada com sucesso!");
SetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
SetPlayerInterior(playerid, DOF2_GetFloat(string2, "uPosInt")); //AQUI!
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
PodeCarregarUltimaPosicao[playerid] = 0;
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SendClientMessage(playerid, -1, "Vocк jб carregou a ultima posiзгo ou o tempo pra digitar o comando expirou !");
}
return 1;
}
PHP код:
CMD:entrarevento(playerid)
{
if (PlayerToPoint(3, playerid,SBizzInfo[25][sbEntranceX], SBizzInfo[25][sbEntranceY], SBizzInfo[25][sbEntranceZ]))
{
new string[180];
if(typeevento == 1)
{
if(!corridainiciada)return SendClientMessage(playerid, COLOR_GRAD1, "Nenhuma corrida iniciada, espere um admin iniciar uma.");
if(IniciouCorrida)return SendClientMessage(playerid, COLOR_GRAD1, "Ja foi dada a largada para esta corrida, espere a proxima.");
if(GetPlayerMoney(playerid) < SBizzInfo[25][sbEntranceCost])
return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem dinheiro suficiente para entrar na corrida.");
if(PlayerInCorrida[playerid])return SendClientMessage(playerid, COLOR_GRAD1, "Vocк ja esta na corrida, aguarde a largada!");
if(PlayersInCorrida >= MAX_PLAYERS_IN_CORRIDA-1)return SendClientMessage(playerid, COLOR_GRAD1, "As vagas para a corrida jб se esgotaram, espere atй a proxima corrida!!");
PlayersInCorrida++;
if(!corridalado){
GetXYInDireita(LargadaCorrida[0], LargadaCorrida[1], LargadaCorrida[3], 6.5);
corridalado = true;
}else{
GetXYInEsquerda(LargadaCorrida[0], LargadaCorrida[1], LargadaCorrida[3], 6.5);
corridalado = false;
}
CarroCorrida[PlayersInCorrida] = CreateVehicle(VeiculoCorrida, LargadaCorrida[0], LargadaCorrida[1],LargadaCorrida[2], LargadaCorrida[3], -1, -1, -1);
LinkVehicleToInterior(CarroCorrida[PlayersInCorrida], InteriorCorrida);
SetPlayerInterior(playerid, InteriorCorrida);
SetPlayerVirtualWorld(playerid, WorldCorrida);
SetVehicleVirtualWorld(CarroCorrida[PlayersInCorrida], WorldCorrida);
SetVehicleParamsEx(CarroCorrida[PlayersInCorrida], 1, 1, 0, 0, 0, 0, 0);
PutPlayerInVehicle(playerid, CarroCorrida[PlayersInCorrida], 0);
PlayerInCorrida[playerid] = true;
TogglePlayerControllable(playerid, 0);
PlayerInCPCorrida[playerid] = 1;
format(string, sizeof string, "*** %s entrou na corrida, agora restam mais %d vagas. Corra atй a empresa de eventos para participar.", NomePlayer(playerid), MAX_PLAYERS_IN_CORRIDA-PlayersInCorrida);
SendClientMessageToAll(TEAM_BALLAS_COLOR, string);
format(string, sizeof string, "*%s entrou na corrida, e estб esperando o admin iniciar.", NomePlayer(playerid));
SendRaceMessage(string); //AQUI!
showTextsCorrida(playerid);
SBizzInfo[25][sbTill] += SBizzInfo[25][sbEntranceCost];
ExtortionSBiz(25, SBizzInfo[25][sbEntranceCost]);
SalvarSEmpresa(25);
Atualizar3Dtexts();
}
else if(typeevento == 2)
{
if(falliniciado)
{
if(fallstart)return SendClientMessage(playerid, COLOR_GRAD1, "O fallout ja foi iniciado, espere um admin iniciar outro!");
SetPlayerFall(playerid);
SendClientMessage(playerid, TEAM_BALLAS_COLOR, "Vocк entrou no evento de FallOut, espere o admin iniciar!");
format(string, sizeof string, "** %s entrou no evento de FallOut, Corra atй a empresa de eventos para participar.", NomePlayer(playerid));
SendClientMessageToAll(COLOR_YELLOW, string);
SetPVarInt(playerid, "inFall", 1);
}
else SendClientMessage(playerid, COLOR_GRAD1, "Nenhum Evento de FallOut iniciado!");
}
else if(typeevento == 3)
{
if(hayiniciado)
{
format(string, sizeof string, "** %s entrou no evento de HAY, Corra atй a empresa de eventos para participar.", NomePlayer(playerid));
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerHay(playerid);
}
else SendClientMessage(playerid, COLOR_GRAD1, "Nenhum Evento de HAY iniciado!");
}
else SendClientMessage(playerid, COLOR_GRAD1, "Nenhum Evento iniciado, espere um admin iniciar um!");
}
else SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб na empresa de eventos!");
return true;
}
PHP код:
CMD:pulartuto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "{2EFEF7}x {FFFFFF} Vocк nгo pode usar este comando!");
return 1;
}
if(!admtrampando[playerid])
return SendClientMessage(playerid, COLOR_GRAD1, "{2EFEF7}x {FFFFFF}Vocк nгo pode usar este comando, pois nгo estб em modo trabalho!");
new para1;
if(sscanf(params, "u", para1))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /pulartuto [ID do Player]");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
//if(EmTutorial[para1] < 1) return SendClientMessage(playerid, COLOR_GREEN, "Este Jogador nгo estб em um tutorial!");
new string[128];
format(string, sizeof string, "Vocк pulou o tutorial de %s", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof string, "O admin %s te livrou do tutorial", sendername);
SendClientMessage(para1, COLOR_LIGHTGREEN, string);
NumeroTutorial[para1] = 19;
STuto(para1, NumeroTutorial[para1]);
format(string, 128, "AdmCmd: %s pulou o tutorial de %s",sendername, giveplayer);
ABroadCast(COLOR_LIGHTGREEN,string,1);
// BRPLogs("comandosadmin", string);
}
}
return 1;
}
PHP код:
stock DestroyDroppedObjectItem(dropid)
{
DestroyDynamicObject(dItemData[dropid][ObjID]);
DestroyDynamic3DTextLabel(dItemData[dropid][text3d]);
dItemData[dropid][ObjtPos][0] = 0.0;
dItemData[dropid][ObjtPos][1] = 0.0;
dItemData[dropid][ObjtPos][2] = 0.0;
dItemData[dropid][ObjtID] = -1;
//dGunData[f][ObjData][0] = 0;
dItemData[dropid][ObjtData][1] = 0;
return 1;
}
PHP код:
if(newkeys & 16 && !IsPlayerInAnyVehicle(playerid))
{
ForT:enterexit(playerid, #);
ForT:equipar(playerid, #);
ForT:parma(playerid);
ForT:pitem(playerid);
ForT:esconder(playerid);
ForT:meuskin(playerid);
ForT:abcowna123(playerid);
ForT:pegarpresente(playerid);
ForT:cfarmacia(playerid);
PegarDroppedExplosivo(playerid);
if(HouseEntered[playerid] != 500){
ForT:furtarmovel(playerid);
}
showDialogMovel(playerid);
for(new x; x != MAX_SOUNDS; x++){
if(SomInfo[x][somCreated] && IsPlayerInRangeOfPoint(playerid, 1.8, SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ]) && SomInfo[x][somID] == playerid){
destroyPlayerSound(playerid);
format(string, sizeof(string), "* %s desligou seu rбdio portбtil.", NomePlayer(playerid));
SendClientMessageInRange(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerInfo[playerid][pComRadio] = true;
SetPlayerAttachedObject(playerid,Slot_Radio,2226,5,0.394999,0.045000,0.027000,-25.299999,-101.699974,0.000000);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.1,0,1,1,0,0);
break;
}
}