[Ajuda] warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level e outros
#1

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
PHP код:
CMD:carregarposicao(playerid)
{
    if(
PodeCarregarUltimaPosicao[playerid] == 1)
    {
        new 
string2[256];
        
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid));
        
        new 
Float:pPos[3];
          
pPos[0] = DOF2_GetFloat(string2"uPosX");
          
pPos[1] = DOF2_GetFloat(string2"uPosY");
          
pPos[2] = DOF2_GetFloat(string2"uPosZ");
        
SendClientMessage(playerid0x9000f0FF"Ultima posiзгo carregada com sucesso!");
        
        
SetPlayerPos(playeridpPos[0], pPos[1], pPos[2]);
        
SetPlayerInterior(playeridDOF2_GetFloat(string2"uPosInt")); //AQUI!
        
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
        
PodeCarregarUltimaPosicao[playerid] = 0;
        
SetCameraBehindPlayer(playerid);
        
SetPlayerVirtualWorld(playerid0);
    }
    else
    {
        
SendClientMessage(playerid, -1"Vocк jб carregou a ultima posiзгo ou o tempo pra digitar o comando expirou !");
    }
    return 
1;

Linha: 41466
PHP код:
    CMD:entrarevento(playerid)
    {
        if (
PlayerToPoint(3playerid,SBizzInfo[25][sbEntranceX], SBizzInfo[25][sbEntranceY], SBizzInfo[25][sbEntranceZ]))
        {
            new 
string[180];
            if(
typeevento == 1)
            {
                if(!
corridainiciada)return SendClientMessage(playeridCOLOR_GRAD1"Nenhuma corrida iniciada, espere um admin iniciar uma.");
                if(
IniciouCorrida)return SendClientMessage(playeridCOLOR_GRAD1"Ja foi dada a largada para esta corrida, espere a proxima.");
                if(
GetPlayerMoney(playerid) < SBizzInfo[25][sbEntranceCost])
                    return 
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem dinheiro suficiente para entrar na corrida.");
                if(
PlayerInCorrida[playerid])return SendClientMessage(playeridCOLOR_GRAD1"Vocк ja esta na corrida, aguarde a largada!");
                if(
PlayersInCorrida >= MAX_PLAYERS_IN_CORRIDA-1)return SendClientMessage(playeridCOLOR_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(VeiculoCorridaLargadaCorrida[0], LargadaCorrida[1],LargadaCorrida[2], LargadaCorrida[3], -1, -1, -1);
                
LinkVehicleToInterior(CarroCorrida[PlayersInCorrida], InteriorCorrida);
                
SetPlayerInterior(playeridInteriorCorrida);
                
SetPlayerVirtualWorld(playeridWorldCorrida);
                
SetVehicleVirtualWorld(CarroCorrida[PlayersInCorrida], WorldCorrida);
                
SetVehicleParamsEx(CarroCorrida[PlayersInCorrida], 1100000);
                
PutPlayerInVehicle(playeridCarroCorrida[PlayersInCorrida], 0);
                
PlayerInCorrida[playerid] = true;
                
TogglePlayerControllable(playerid0);
                
PlayerInCPCorrida[playerid] = 1;
                
format(stringsizeof 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_COLORstring);
                
format(stringsizeof 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(25SBizzInfo[25][sbEntranceCost]);
                
SalvarSEmpresa(25);
                
Atualizar3Dtexts();
            }
            else if(
typeevento == 2)
            {
                if(
falliniciado)
                {
                    if(
fallstart)return SendClientMessage(playeridCOLOR_GRAD1"O fallout ja foi iniciado, espere um admin iniciar outro!");
                    
SetPlayerFall(playerid);
                    
SendClientMessage(playeridTEAM_BALLAS_COLOR"Vocк entrou no evento de FallOut, espere o admin iniciar!");
                    
format(stringsizeof string"** %s entrou no evento de FallOut, Corra atй a empresa de eventos para participar."NomePlayer(playerid));
                    
SendClientMessageToAll(COLOR_YELLOWstring);
                    
SetPVarInt(playerid"inFall"1);
                }
                else 
SendClientMessage(playeridCOLOR_GRAD1"Nenhum Evento de FallOut iniciado!");
            }
            else if(
typeevento == 3)
            {
                if(
hayiniciado)
                {
                    
format(stringsizeof string"** %s entrou no evento de HAY, Corra atй a empresa de eventos para participar."NomePlayer(playerid));
                    
SendClientMessageToAll(COLOR_YELLOWstring);
                    
SetPlayerHay(playerid);
                }
                else 
SendClientMessage(playeridCOLOR_GRAD1"Nenhum Evento de HAY iniciado!");
            }
            else 
SendClientMessage(playeridCOLOR_GRAD1"Nenhum Evento iniciado, espere um admin iniciar um!");
        }
        else 
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб na empresa de eventos!");
        return 
true;
    } 
Linha: 41599
PHP код:
    CMD:pulartuto(playeridparams[])
    {
            if(
PlayerInfo[playerid][pAdmin] < 1)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"{2EFEF7}x {FFFFFF}     Vocк nгo pode usar este comando!");
                return 
1;
            }
            if(!
admtrampando[playerid])
                    return 
SendClientMessage(playeridCOLOR_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(playeridCOLOR_GRAD2"USE: /pulartuto [ID do Player]");
                return 
1;
            }
            
GetPlayerName(para1giveplayersizeof(giveplayer));
            
GetPlayerName(playeridsendernamesizeof(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(stringsizeof string"Vocк pulou o tutorial de %s"giveplayer);
                    
SendClientMessage(playeridCOLOR_LIGHTGREENstring);
                    
format(stringsizeof string"O admin %s te livrou do tutorial"sendername);
                    
SendClientMessage(para1COLOR_LIGHTGREENstring);
                    
NumeroTutorial[para1] = 19;
                    
STuto(para1NumeroTutorial[para1]);
                    
format(string128"AdmCmd: %s pulou o tutorial de %s",sendernamegiveplayer);
                    
ABroadCast(COLOR_LIGHTGREEN,string,1);
                
//    BRPLogs("comandosadmin", string);
                
}
            }
            return 
1;
    } 
Linha: 44773 e 44774
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;

Linha: 68958
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!= MAX_SOUNDSx++){
        
            if(
SomInfo[x][somCreated] && IsPlayerInRangeOfPoint(playerid1.8SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ]) && SomInfo[x][somID] == playerid){
            
                
destroyPlayerSound(playerid);
            
                
format(stringsizeof(string), "* %s desligou seu rбdio portбtil."NomePlayer(playerid));
                
SendClientMessageInRange(30.0playeridstringCOLOR_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;
            }
        } 
Reply
#2

PHP код:
CMD:carregarposicao(playerid

    if(
PodeCarregarUltimaPosicao[playerid] == 1
    { 
        new 
string2[256]; 
        
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid)); 
         
        new 
Float:pPos[3]; 
          
pPos[0] = DOF2_GetFloat(string2"uPosX"); 
          
pPos[1] = DOF2_GetFloat(string2"uPosY"); 
          
pPos[2] = DOF2_GetFloat(string2"uPosZ"); 
        
SendClientMessage(playerid0x9000f0FF"Ultima posiзгo carregada com sucesso!"); 
         
        
SetPlayerPos(playeridpPos[0], pPos[1], pPos[2]); 
        
SetPlayerInterior(playeridDOF2_GetInt(string2"uPosInt")); //AQUI! Vocк colocou float
        
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid); 
        
PodeCarregarUltimaPosicao[playerid] = 0
        
SetCameraBehindPlayer(playerid); 
        
SetPlayerVirtualWorld(playerid0); 
    } 
    else 
    { 
        
SendClientMessage(playerid, -1"Vocк jб carregou a ultima posiзгo ou o tempo pra digitar o comando expirou !"); 
    } 
    return 
1

O erro desse aqui tб no define me mande o define com o nome SendRaceMessage.
PHP код:
   CMD:entrarevento(playerid
    { 
        if (
PlayerToPoint(3playerid,SBizzInfo[25][sbEntranceX], SBizzInfo[25][sbEntranceY], SBizzInfo[25][sbEntranceZ])) 
        { 
            new 
string[180]; 
            if(
typeevento == 1
            { 
                if(!
corridainiciada)return SendClientMessage(playeridCOLOR_GRAD1"Nenhuma corrida iniciada, espere um admin iniciar uma."); 
                if(
IniciouCorrida)return SendClientMessage(playeridCOLOR_GRAD1"Ja foi dada a largada para esta corrida, espere a proxima."); 
                if(
GetPlayerMoney(playerid) < SBizzInfo[25][sbEntranceCost]) 
                    return 
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem dinheiro suficiente para entrar na corrida."); 
                if(
PlayerInCorrida[playerid])return SendClientMessage(playeridCOLOR_GRAD1"Vocк ja esta na corrida, aguarde a largada!"); 
                if(
PlayersInCorrida >= MAX_PLAYERS_IN_CORRIDA-1)return SendClientMessage(playeridCOLOR_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(VeiculoCorridaLargadaCorrida[0], LargadaCorrida[1],LargadaCorrida[2], LargadaCorrida[3], -1, -1, -1); 
                
LinkVehicleToInterior(CarroCorrida[PlayersInCorrida], InteriorCorrida); 
                
SetPlayerInterior(playeridInteriorCorrida); 
                
SetPlayerVirtualWorld(playeridWorldCorrida); 
                
SetVehicleVirtualWorld(CarroCorrida[PlayersInCorrida], WorldCorrida); 
                
SetVehicleParamsEx(CarroCorrida[PlayersInCorrida], 1100000); 
                
PutPlayerInVehicle(playeridCarroCorrida[PlayersInCorrida], 0); 
                
PlayerInCorrida[playerid] = true
                
TogglePlayerControllable(playerid0); 
                
PlayerInCPCorrida[playerid] = 1
                
format(stringsizeof 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_COLORstring); 
                
format(stringsizeof 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(25SBizzInfo[25][sbEntranceCost]); 
                
SalvarSEmpresa(25); 
                
Atualizar3Dtexts(); 
            } 
            else if(
typeevento == 2
            { 
                if(
falliniciado
                { 
                    if(
fallstart)return SendClientMessage(playeridCOLOR_GRAD1"O fallout ja foi iniciado, espere um admin iniciar outro!"); 
                    
SetPlayerFall(playerid); 
                    
SendClientMessage(playeridTEAM_BALLAS_COLOR"Vocк entrou no evento de FallOut, espere o admin iniciar!"); 
                    
format(stringsizeof string"** %s entrou no evento de FallOut, Corra atй a empresa de eventos para participar."NomePlayer(playerid)); 
                    
SendClientMessageToAll(COLOR_YELLOWstring); 
                    
SetPVarInt(playerid"inFall"1); 
                } 
                else 
SendClientMessage(playeridCOLOR_GRAD1"Nenhum Evento de FallOut iniciado!"); 
            } 
            else if(
typeevento == 3
            { 
                if(
hayiniciado
                { 
                    
format(stringsizeof string"** %s entrou no evento de HAY, Corra atй a empresa de eventos para participar."NomePlayer(playerid)); 
                    
SendClientMessageToAll(COLOR_YELLOWstring); 
                    
SetPlayerHay(playerid); 
                } 
                else 
SendClientMessage(playeridCOLOR_GRAD1"Nenhum Evento de HAY iniciado!"); 
            } 
            else 
SendClientMessage(playeridCOLOR_GRAD1"Nenhum Evento iniciado, espere um admin iniciar um!"); 
        } 
        else 
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб na empresa de eventos!"); 
        return 
true
    } 
Esse aqui vocк nгo mostrou onde ta o erro.
PHP код:
  CMD:pulartuto(playeridparams[]) 
    { 
            if(
PlayerInfo[playerid][pAdmin] < 1
            { 
                
SendClientMessage(playeridCOLOR_GRAD1"{2EFEF7}x {FFFFFF}     Vocк nгo pode usar este comando!"); 
                return 
1
            } 
            if(!
admtrampando[playerid]) 
                    return 
SendClientMessage(playeridCOLOR_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(playeridCOLOR_GRAD2"USE: /pulartuto [ID do Player]"); 
                return 
1
            } 
            
GetPlayerName(para1giveplayersizeof(giveplayer)); 
            
GetPlayerName(playeridsendernamesizeof(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(stringsizeof string"Vocк pulou o tutorial de %s"giveplayer); 
                    
SendClientMessage(playeridCOLOR_LIGHTGREENstring); 
                    
format(stringsizeof string"O admin %s te livrou do tutorial"sendername); 
                    
SendClientMessage(para1COLOR_LIGHTGREENstring); 
                    
NumeroTutorial[para1] = 19
                    
STuto(para1NumeroTutorial[para1]); 
                    
format(string128"AdmCmd: %s pulou o tutorial de %s",sendernamegiveplayer); 
                    
ABroadCast(COLOR_LIGHTGREEN,string,1); 
                
//    BRPLogs("comandosadmin", string); 
                

            } 
            return 
1
    } 
Mostre a linha do erro e mande a variбvel
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[dropid][ObjData][0] = 0;  //Se for esse tente
        
dItemData[dropid][ObjtData][1] = 0
        return 
1

Mostre a linha do erro
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!= MAX_SOUNDSx++){ 
         
            if(
SomInfo[x][somCreated] && IsPlayerInRangeOfPoint(playerid1.8SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ]) && SomInfo[x][somID] == playerid){ 
             
                
destroyPlayerSound(playerid); 
             
                
format(stringsizeof(string), "* %s desligou seu rбdio portбtil."NomePlayer(playerid)); 
                
SendClientMessageInRange(30.0playeridstringCOLOR_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; 
            } 
        } 
Reply
#3

? ele estб usando enum o ObjData deve estб como float.

PHP код:
dItemData[dropid][ObjtPos][2] = 0.0//Float
dGunData[dropid][ObjData][0] = 0//INT 
Reply
#4

Viajei agora kk vlw pela correзгo,to alguns meses sem mexer com pawn ai embaraзa tudo.
Reply
#5

Pronto marquei os warnings com "AKI!"
warning 213: tag mismatch:
PHP код:
CMD:carregarposicao(playerid)
{
    if(
PodeCarregarUltimaPosicao[playerid] == 1)
    {
        new 
string2[256];
        
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid));
        
        new 
Float:pPos[3];
          
pPos[0] = DOF2_GetFloat(string2"uPosX");
          
pPos[1] = DOF2_GetFloat(string2"uPosY");
          
pPos[2] = DOF2_GetFloat(string2"uPosZ");
        
SendClientMessage(playerid0x9000f0FF"Ultima posiзгo carregada com sucesso!");
        
        
SetPlayerPos(playeridpPos[0], pPos[1], pPos[2]);
        
SetPlayerInterior(playeridDOF2_GetFloat(string2"uPosInt")); //AKI!
        
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
        
PodeCarregarUltimaPosicao[playerid] = 0;
        
SetCameraBehindPlayer(playerid);
        
SetPlayerVirtualWorld(playerid0);
    }
    else
    {
        
SendClientMessage(playerid, -1"Vocк jб carregou a ultima posiзгo ou o tempo pra digitar o comando expirou !");
    }
    return 
1;

warning 202: number of arguments does not match definition:
PHP код:
    CMD:pulartuto(playeridparams[])
    {
            if(
PlayerInfo[playerid][pAdmin] < 1)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"{2EFEF7}x {FFFFFF}     Vocк nгo pode usar este comando!");
                return 
1;
            }
            if(!
admtrampando[playerid])
                    return 
SendClientMessage(playeridCOLOR_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(playeridCOLOR_GRAD2"USE: /pulartuto [ID do Player]");
                return 
1;
            }
            
GetPlayerName(para1giveplayersizeof(giveplayer));
            
GetPlayerName(playeridsendernamesizeof(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(stringsizeof string"Vocк pulou o tutorial de %s"giveplayer);
                    
SendClientMessage(playeridCOLOR_LIGHTGREENstring);
                    
format(stringsizeof string"O admin %s te livrou do tutorial"sendername);
                    
SendClientMessage(para1COLOR_LIGHTGREENstring);
                    
NumeroTutorial[para1] = 19;
                    
STuto(para1NumeroTutorial[para1]); //AKI!
                    
format(string128"AdmCmd: %s pulou o tutorial de %s",sendernamegiveplayer);
                    
ABroadCast(COLOR_LIGHTGREEN,string,1);
                
//    BRPLogs("comandosadmin", string);
                
}
            }
            return 
1;
    } 
warning 213: tag mismatch:
PHP код:
stock DestroyDroppedObjectItem(dropid)
{
        
DestroyDynamicObject(dItemData[dropid][ObjID]); //AKI!
        
DestroyDynamic3DTextLabel(dItemData[dropid][text3d]); //AKI!
        
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;

warning 202: number of arguments does not match definition:
PHP код:
    if(newkeys 16 && !IsPlayerInAnyVehicle(playerid))
    {
        
ForT:enterexit(playerid#);
        
ForT:equipar(playerid#);
        
ForT:parma(playerid);
        
ForT:pitem(playerid);
        
ForT:esconder(playerid);
        
ForT:meuskin(playerid); //AKI!
        
ForT:abcowna123(playerid);
        
ForT:pegarpresente(playerid);
        
ForT:cfarmacia(playerid);
        
PegarDroppedExplosivo(playerid);
        if(
HouseEntered[playerid] != 500){
            
ForT:furtarmovel(playerid);
        }
        
showDialogMovel(playerid);
        for(new 
x!= MAX_SOUNDSx++){
        
            if(
SomInfo[x][somCreated] && IsPlayerInRangeOfPoint(playerid1.8SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ]) && SomInfo[x][somID] == playerid){
            
                
destroyPlayerSound(playerid);
            
                
format(stringsizeof(string), "* %s desligou seu rбdio portбtil."NomePlayer(playerid));
                
SendClientMessageInRange(30.0playeridstringCOLOR_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;
            }
        } 
Reply
#6

O resto sгo a funзгo do seu cуdigo ninguйm pode ajuda vocк

PHP код:
CMD:carregarposicao(playerid)
{
    if(
PodeCarregarUltimaPosicao[playerid] == 1)
    {
        new 
string2[256];
        
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid));
        new 
Float:pPos[3];
          
pPos[0] = DOF2_GetFloat(string2"uPosX");
          
pPos[1] = DOF2_GetFloat(string2"uPosY");
          
pPos[2] = DOF2_GetFloat(string2"uPosZ");
        
SendClientMessage(playerid0x9000f0FF"Ultima posiзгo carregada com sucesso!");
        
SetPlayerPos(playeridpPos[0], pPos[1], pPos[2]);
        
SetPlayerInterior(playeridDOF2_GetInt(string2"uPosInt")); //AKI!
        
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
        
PodeCarregarUltimaPosicao[playerid] = 0;
        
SetCameraBehindPlayer(playerid);
        
SetPlayerVirtualWorld(playerid0);
    }
    else
    {
        
SendClientMessage(playerid, -1"Vocк jб carregou a ultima posiзгo ou o tempo pra digitar o comando expirou !");
    }
    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;
}
olhe esse tуpico:http://forum.sa-mp.com/showthread.php?t=639821 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)