SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 26/03/2020, 02:55 PM   #1
dieguinhorangel
Big Clucker
 
Join Date: Feb 2016
Posts: 65
Reputation: 0
Default Alguns Warnings ao compilar

Ainda não entendo muito desses erros, se alguem conseguir me ajudar com isso :/



C:\Users\diego\Desktop\GMAHHSH\gamemodes\BPS(4).pw n(651) : warning 217: loose indentation
C:\Users\diego\Desktop\GMAHHSH\gamemodes\BPS(4).pw n(32229) : warning 216: nested comment
C:\Users\diego\Desktop\GMAHHSH\gamemodes\BPS(4).pw n(54019) : warning 219: local variable "v" shadows a variable at a preceding level
C:\Users\diego\Desktop\GMAHHSH\gamemodes\BPS(4).pw n(55373) : warning 216: nested comment
C:\Users\diego\Desktop\GMAHHSH\gamemodes\BPS(4).pw n(93913) : warning 202: number of arguments does not match definition
C:\Users\diego\Desktop\GMAHHSH\gamemodes\BPS(4).pw n(118859) : warning 202: number of arguments does not match definition


linha 651:
if(bug1 == 1)

linha 32229:
/*if(InventarioInfo[playerid][i][iSlot] == 19382) (uma linha quer está desativada) '-'

linha: 54019:
for(new v; v < MAX_VEHICLES; v++) if(GetVehicleModel(v) >= 400)

linha 55373:
/* HOSPITALL[12] = CreateActor(45,-2027.4318,-116.4133,1035.1719,276.0131); // SENTADO NO BANCO ( tambem desativada) '-'

linha 93913:
Gamecar[playerid] = AddStaticVehicleEx(560, X, Y, Z, -1, -1, 0);

linha 118859:
ForT:farmacia123(playerid);
dieguinhorangel is offline   Reply With Quote
Old 26/03/2020, 02:59 PM   #2
Khivory
Huge Clucker
 
Khivory's Avatar
 
Join Date: Feb 2020
Posts: 269
Reputation: 17
Default Re: Alguns Warnings ao compilar

Mande o código inteiro, não apenas as linhas que 'contém' os erros.
Khivory is offline   Reply With Quote
Old 26/03/2020, 03:28 PM   #3
dieguinhorangel
Big Clucker
 
Join Date: Feb 2016
Posts: 65
Reputation: 0
Default Re: Alguns Warnings ao compilar

651::
PHP Code:
    if(bug1 == 1)
    {
        
SendClientMessage(playeridCOLOR_GRAD1,"Você não pode guardar o portão enquanto edita ela");
        return 
true;
    } 

54019:::
PHP Code:
    stock GetClosestCar(playeridexception INVALID_VEHICLE_ID)
    {
        new 
FloatDistance,target = -1,FloatvPos[3];
            if(!
IsPlayerInAnyVehicle(playerid)) GetPlayerPos(playeridvPos[0], vPos[1], vPos[2]);
            else 
GetVehiclePos(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]);
        for(new 
vMAX_VEHICLESv++) if(GetVehicleModel(v) >= 400)
            {
        if(
!= exception && (target || Distance GetDistanceToCar(playeridvvPos[0], vPos[1], vPos[2])))
            {
                    
target v;
                    
Distance GetDistanceToCar(playeridvvPos[0], vPos[1], vPos[2]);
            }
        }
        return 
target;
    } 



linha 93913:::::
PHP Code:
CMD:gamecarro(playerid)//by game
   
{
      new 
carCOLOR1COLOR2;
      new 
Float:X,Float:Y,Float:Z;
      
GetPlayerPos(playeridX,Y,Z);
      new 
carid CreateVehicle(carX,Y+2,Z0.0COLOR1COLOR260000);

    if(
GetPlayerInterior(playerid) > 0)
        {
             
SendClientMessage(playeridCOR_AMARELO"Você não pode usar seu Sultan nesse local!");
            return 
1;
        }
   if(
PlayerInfo[playerid][pJailed] > 0)
           {
           
SendClientMessage(playeridCOR_AMARELO"Você esta preso, não pode usar seu Sultan!");
           return 
1;
        }
          
GetPlayerPos(playerid,XYZ);
          
GetPlayerFacingAngle(playerid,Gamex[playerid]);
          
Gamecar[playerid] = AddStaticVehicleEx(560XYZ, -1, -10);
                
SetVehicleToRespawn(carid);
         
//carroinvCriado[playerid] = 1;
         
return 1;
    } 

118859:::::
PHP Code:
        else if (PlayerToPoint(2playerid836.3370,-723.1866,499.8795))
        {
            
ForT:farmacia123(playerid);
        } 
dieguinhorangel is offline   Reply With Quote
Old 26/03/2020, 03:45 PM   #4
dieguinhorangel
Big Clucker
 
Join Date: Feb 2016
Posts: 65
Reputation: 0
Default Re: Alguns Warnings ao compilar

32229 & 55373 consegui resolver era um /* a mais
dieguinhorangel is offline   Reply With Quote
Old 27/03/2020, 08:07 PM   #5
dieguinhorangel
Big Clucker
 
Join Date: Feb 2016
Posts: 65
Reputation: 0
Default Re: Alguns Warnings ao compilar

Quote:
Originally Posted by dieguinhorangel View Post
651::
PHP Code:
    if(bug1 == 1)
    {
        
SendClientMessage(playeridCOLOR_GRAD1,"Você não pode guardar o portão enquanto edita ela");
        return 
true;
    } 

54019:::
PHP Code:
    stock GetClosestCar(playeridexception INVALID_VEHICLE_ID)
    {
        new 
FloatDistance,target = -1,FloatvPos[3];
            if(!
IsPlayerInAnyVehicle(playerid)) GetPlayerPos(playeridvPos[0], vPos[1], vPos[2]);
            else 
GetVehiclePos(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]);
        for(new 
vMAX_VEHICLESv++) if(GetVehicleModel(v) >= 400)
            {
        if(
!= exception && (target || Distance GetDistanceToCar(playeridvvPos[0], vPos[1], vPos[2])))
            {
                    
target v;
                    
Distance GetDistanceToCar(playeridvvPos[0], vPos[1], vPos[2]);
            }
        }
        return 
target;
    } 



linha 93913:::::
PHP Code:
CMD:gamecarro(playerid)//by game
   
{
      new 
carCOLOR1COLOR2;
      new 
Float:X,Float:Y,Float:Z;
      
GetPlayerPos(playeridX,Y,Z);
      new 
carid CreateVehicle(carX,Y+2,Z0.0COLOR1COLOR260000);

    if(
GetPlayerInterior(playerid) > 0)
        {
             
SendClientMessage(playeridCOR_AMARELO"Você não pode usar seu Sultan nesse local!");
            return 
1;
        }
   if(
PlayerInfo[playerid][pJailed] > 0)
           {
           
SendClientMessage(playeridCOR_AMARELO"Você esta preso, não pode usar seu Sultan!");
           return 
1;
        }
          
GetPlayerPos(playerid,XYZ);
          
GetPlayerFacingAngle(playerid,Gamex[playerid]);
          
Gamecar[playerid] = AddStaticVehicleEx(560XYZ, -1, -10);
                
SetVehicleToRespawn(carid);
         
//carroinvCriado[playerid] = 1;
         
return 1;
    } 

118859:::::
PHP Code:
        else if (PlayerToPoint(2playerid836.3370,-723.1866,499.8795))
        {
            
ForT:farmacia123(playerid);
        } 
ainda não consegui resolver esses Warnings, alguem consegua ajudar?
dieguinhorangel is offline   Reply With Quote
Old 27/03/2020, 08:38 PM   #6
Khivory
Huge Clucker
 
Khivory's Avatar
 
Join Date: Feb 2020
Posts: 269
Reputation: 17
Default Re: Alguns Warnings ao compilar

Aqui falta 1 parâmetro: Gamecar[playerid] = AddStaticVehicleEx(560, X, Y, Z, ANGLE, -1, -1, 0);


PHP Code:
    stock GetClosestCar(playeridexception INVALID_VEHICLE_ID)
    {
        new 
FloatDistance,target = -1,FloatvPos[3];
            if(!
IsPlayerInAnyVehicle(playerid)) GetPlayerPos(playeridvPos[0], vPos[1], vPos[2]);
            else 
GetVehiclePos(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]);
        for(new 
iMAX_VEHICLESi++) if(GetVehicleModel(i) >= 400)
            {
        if(
!= exception && (target || Distance GetDistanceToCar(playeridivPos[0], vPos[1], vPos[2])))
            {
                    
target i;
                    
Distance GetDistanceToCar(playeridi vPos[0], vPos[1], vPos[2]);
            }
        }
        return 
target;
    } 
Khivory is offline   Reply With Quote
Old 28/03/2020, 03:17 AM   #7
dieguinhorangel
Big Clucker
 
Join Date: Feb 2016
Posts: 65
Reputation: 0
Default Re: Alguns Warnings ao compilar

Quote:
Originally Posted by Khivory View Post
Aqui falta 1 parâmetro: Gamecar[playerid] = AddStaticVehicleEx(560, X, Y, Z, ANGLE, -1, -1, 0);


PHP Code:
    stock GetClosestCar(playeridexception INVALID_VEHICLE_ID)
    {
        new 
FloatDistance,target = -1,FloatvPos[3];
            if(!
IsPlayerInAnyVehicle(playerid)) GetPlayerPos(playeridvPos[0], vPos[1], vPos[2]);
            else 
GetVehiclePos(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]);
        for(new 
iMAX_VEHICLESi++) if(GetVehicleModel(i) >= 400)
            {
        if(
!= exception && (target || Distance GetDistanceToCar(playeridivPos[0], vPos[1], vPos[2])))
            {
                    
target i;
                    
Distance GetDistanceToCar(playeridi vPos[0], vPos[1], vPos[2]);
            }
        }
        return 
target;
    } 
resolvido este, os outros conseguiu enxergar algo de errado?
dieguinhorangel is offline   Reply With Quote
Old 28/03/2020, 03:46 AM   #8
Khivory
Huge Clucker
 
Khivory's Avatar
 
Join Date: Feb 2020
Posts: 269
Reputation: 17
Default Re: Alguns Warnings ao compilar

quais são os erros restantes?
Khivory is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Alguns erros ao compilar !! SerignoLLi Português/Portuguese 8 02/06/2019 03:40 PM
[Ajuda] Alguns erros ao compilar bank system Sodom Português/Portuguese 7 26/12/2013 12:26 PM
[Ajuda] Alguns warnings iCamila Português/Portuguese 4 16/08/2012 03:11 PM
[Ajuda] Alguns warnings arakuta Português/Portuguese 5 13/07/2011 03:06 AM
alguns erros ao compilar pedro xD~ Português/Portuguese 9 31/08/2010 05:54 PM


All times are GMT. The time now is 10:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.