[Ajuda] warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level e outros
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)