SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/12/2017, 12:01 PM   #1
SnowBorn
Big Clucker
 
Join Date: Nov 2017
Location: Russian
Posts: 133
Reputation: 0
Default OnPlayerKeyStateChange

Erros

PHP Code:
C:\Users\SnowBorn\Desktop\Brasil Nova Vida dlç de gm\gamemodes\GMNRV.pwn(40358) : error 017undefined symbol "newstate"
C:\Users\SnowBorn\Desktop\Brasil Nova Vida dlç de gm\gamemodes\GMNRV.pwn(40366) : error 021symbol already defined"OnPlayerKeyStateChange" 
Linhas do erros
Mandei a public pq vai q da mais erros dps '-'


PHP Code:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys == KEY_YES && IsPlayerInAnyVehicle(playerid))
    {
        new 
enginelightsalarmdoorsbonnetbootobjective;
        if(
luz[playerid] == 0)
        {
            new 
veh GetPlayerVehicleID(playerid);
            
GetVehicleParamsEx(GetPlayerVehicleID(playerid), enginelightsalarmdoorsbonnetbootobjective);
            
SetVehicleParamsEx(vehengineVEHICLE_PARAMS_ONalarmdoorsbonnetbootobjective);
            
luz[playerid] = 1;
            
SendClientMessage(playeridVerde"Farol ligado");

        }
        else if(
luz[playerid] == 1)
        {
            new 
veh GetPlayerVehicleID(playerid);
            
GetVehicleParamsEx(vehenginelightsalarm,doorsbonnetbootobjective);
            
SetVehicleParamsEx(vehengineVEHICLE_PARAMS_OFFalarmdoorsbonnetbootobjective);
            
luz[playerid] = 0;
            
SendClientMessage(playeridLaranja"Farol Desligado");
        }
    }
    if(
newkeys == KEY_SUBMISSION && IsPlayerInAnyVehicle(playerid))
    {
        new 
motlualarporcappormaob;
        new 
carro GetPlayerVehicleID(playerid);
        
GetVehicleParamsEx(carromotlualarporcappormaob);
        if(
mot == VEHICLE_PARAMS_OFF)
        {
            
SetVehicleParamsEx(carroVEHICLE_PARAMS_ONlualarporcappormaob);
            
SendClientMessage(playeridVerde"Motor ligado");
            }else{
            
SendClientMessage(playerid,Laranja"Motor Desligado");
            
SetVehicleParamsEx(carroVEHICLE_PARAMS_OFFlualarporcappormaob);
        }
}

if(
newkeys == KEY_WALK)
    {
        if(
Patins_M[playerid] > 2)  ApplyAnimation(playerid"CARRY""crry_prtial"4.000000);
        
PlayerPlaySound(playerid2145000);
        return 
true;
    }
    if(
newkeys == KEY_SPRINT)
    {
        if(
Patins_M[playerid] > 2)
        {
            if(
Patins_M[playerid] == 3ApplyAnimation(playerid,"SKATE","skate_run",4.0,1,1,1,1,500);
            else if(
Patins_M[playerid] == 4ApplyAnimation(playerid,"SKATE","skate_sprint",4.0,1,1,1,1,500);
            
PlayerPlaySound(playerid2145000);
        }
        return 
true;
    }


    if(
HOLDING(KEY_FIRE) && Servico[playerid] == true)
    {
        
SetTimerEx("Check"750false"i"playerid);
        
Apagando[playerid] = 1;
    }
    if(
RELEASED(KEY_FIRE))
    {
        
Apagando[playerid] = 0;
    }

    new 
pname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
    if(
pAdmin[playerid] == || PlayerInfo[playerid][OrganizadorE]){
    {
    if( 
ClickMauseplayerid ] == )
    {
    if ( 
newkeys KEY_FIRE )
    {
    if( 
CheckID >= 1000 )
    {
     
SendClientMessageplayeridVermelho" | ERRO | Já foi criado o máximo de checkpoints ! ( Máximo: 500 )" );
      return 
1;
       }
      new
    
Float:g_xFloat:g_yFloat:g_z
    
;
     
GetPlayerPosplayeridg_xg_yg_z );
    
CheckPointCheckID ][ ] = g_x;
    
CheckPointCheckID ][ ] = g_y;
    
CheckPointCheckID ][ ] = g_z;
    
CheckID ++;
    
formatgStrsizeofgStr ), "~b~~h~~n~~n~~n~~n~~n~~n~CheckPoint %d criado !"CheckID );
    
GameTextForPlayerplayeridgStr5000);
     }
      }
    }
    }


    if(
PlayerInfo[playerid][pVip2] == || IsPlayerAdmin(playerid))
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            new 
var0 GetPlayerVehicleID(playerid);
            if(
function218(var0) && (oldkeys || oldkeys 4))
            {
                
RemoveVehicleComponent(var01010);
                
AddVehicleComponent(var01010);
            }
        }
    }


    if(
IsNearOfBallon(playerid))
    {
    if(
newkeys KEY_SECONDARY_ATTACK && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
    if(
Ballon[playerid][bPaused])
    {
    
SetPlayerArmedWeapon(playerid0);
    
SetPlayerAttachedObject(playeridGetEmptyAttachedSlot(playerid), 1908760.490910, -0.2516981.52162311.09513314.952476349.7934260.6848500.6848500.684850);
    
ApplyAnimation(playerid"POOL""POOL_Idle_Stance"4.111111);
    
Ballon[playerid][bTimer] = SetTimerEx("CheckPlayerKeys"500true"d"playerid);
    
Ballon[playerid][bPaused] = false;
    
Ballon[playerid][bCameraDistance] = 80.0;
    return 
true;
    }
    else
    {
    
StopObject(Ballon[playerid][bObjectID]);
    
ClearAnimations(playerid);
    
SetCameraBehindPlayer(playerid);
    
RemovePlayerAttachedObject(playeridBallon[playerid][oAttachedSlot]);
    
KillTimer(Ballon[playerid][bTimer]);
    
Ballon[playerid][bTimer] = -1;
    
Ballon[playerid][bPaused] = true;
    return 
true;
    }
    }

    if(
newkeys KEY_CROUCHSetSlowSpeed(playerid);

    if(!
Ballon[playerid][bPaused])
     {
      
CheckPlayerKeys(playerid);
       
UpdateCamera(playerid);
    }
    }

    if((
newkeys KEY_CROUCH) && (IsPlayerInAnyVehicle(playerid)))
    {
    if(
PlayerInfoplayerid ][pAbriu] == ){
    return 
1;
    }
    new 
string 128 ];
    if(
IsPlayerInRangeOfPoint(playerid15.0926.1042,-1220.0074,16.9675)) {
     
format(pFilesizeof(pFile), "clas/%s.ini"PlayerName(playerid));
     
format(gFilesizeof(gFile), "clas/%s.ini"dini_Get(pFile"cla"));
      
format(stringsizeof(string),"/Base/base0.ini"dini_Get(pFile"Base"));
     if(
strcmp(dini_Get(pFile"cla"), "Nenhum"true) == 0) {
     return 
1;
     }
    if (
PlayerInfoplayerid ][pAbriu] == 1){
    return 
1;
    }
    if(
strcmp(dini_Get(string"Dono"), dini_Get(pFile"cla"), true) == 0) {
    
MoveObject(gz1,923.64489746094, -1225.569458007818.749954223633,3.0);
     
PlayerInfoplayerid ][pAbriu] = 1;
    
SetTimerEx("FecharLs"5000false"i"playerid);
    
format(stringsizeof(string)," | INFO | O portão da base do clan %s localizada em Los Santos foi aberto!"dini_Get(pFile"cla"));
    
SendClientMessage(playerid,AmareloClarostring);
     }
    return 
1;
     }
    }


    if((
newkeys KEY_CROUCH) && (IsPlayerInAnyVehicle(playerid)))
    {
    if(
PlayerInfoplayerid ][pAbriu] == ){
    return 
1;
    }
    new 
string 128 ];
    if(
IsPlayerInRangeOfPoint(playerid15.0369.89999389648,-1930.4000244141,7.6999998092651)) {
     
format(pFilesizeof(pFile), "clas/%s.ini"PlayerName(playerid));
     
format(gFilesizeof(gFile), "clas/%s.ini"dini_Get(pFile"cla"));
      
format(stringsizeof(string),"/Base/base3.ini"dini_Get(pFile"Base"));
     if(
strcmp(dini_Get(pFile"cla"), "Nenhum"true) == 0) {
     return 
1;
     }
    if (
PlayerInfoplayerid ][pAbriu] == 1){
    return 
1;
    }
    if(
strcmp(dini_Get(string"Dono"), dini_Get(pFile"cla"), true) == 0) {
    
MoveObject(gz4,370.20001220703, -1931.514.60000038147,3.0);
     
PlayerInfoplayerid ][pAbriu] = 1;
    
SetTimerEx("FecharLs2"5000false"i"playerid);
    
format(stringsizeof(string)," | INFO | O portão da base do clan %s localizada em Los Santos foi aberto!"dini_Get(pFile"cla"));
    
SendClientMessage(playerid,AmareloClarostring);
     }
    return 
1;
     }
    }


    if((
newkeys KEY_CROUCH) && (IsPlayerInAnyVehicle(playerid)))
    {
    new 
string 128 ];
     if(
IsPlayerInRangeOfPoint(playerid15.01067.2876,1361.5778,10.6719)) {
     
format(pFilesizeof(pFile), "clas/%s.ini"PlayerName(playerid));
     
format(gFilesizeof(gFile), "clas/%s.ini"dini_Get(pFile"cla"));
     
format(stringsizeof(string),"/Base/base2.ini"dini_Get(pFile"Base"));
     if(
strcmp(dini_Get(pFile"cla"), "Nenhum"true) == 0) {
     return 
1;
     }
    if (
PlayerInfoplayerid ][pAbriu] == ){
    return 
1;
    }
    if(
strcmp(dini_Get(string"Dono"), dini_Get(pFile"cla"), true) == 0) {
    
MoveObject(gz2,1078.45202636721357.890014648412.593704223633,3.0);
    
PlayerInfoplayerid ][pAbriu] = 1;
    
SetTimerEx("FecharLv"5000false"i"playerid);
    
format(stringsizeof(string)," | INFO | O portão da base do clan %s localizada em Las Venturas foi aberto!"dini_Get(pFile"cla"));
    
SendClientMessage(playerid,AmareloClarostring);
       }
    return 
1;
     }
     }


    if((
newkeys KEY_CROUCH) && (IsPlayerInAnyVehicle(playerid)))
    {
    new 
string 128 ];
     if(
IsPlayerInRangeOfPoint(playerid15.0, -2127.1000976563,-79.40000152587,35.299999237061)) {
     
format(pFilesizeof(pFile), "clas/%s.ini"PlayerName(playerid));
     
format(gFilesizeof(gFile), "clas/%s.ini"dini_Get(pFile"cla"));
     
format(stringsizeof(string),"/Base/base1.ini"dini_Get(pFile"Base"));
     if(
strcmp(dini_Get(pFile"cla"), "Nenhum"true) == 0) {
     return 
1;
     }
    if (
PlayerInfoplayerid ][pAbriu] == ){
    return 
1;
    }
    if(
strcmp(dini_Get(string"Dono"), dini_Get(pFile"cla"), true) == 0) {
    
MoveObject(gz3,-2116.5, -80.59999847412137.099998474121,3.0);
     
PlayerInfoplayerid ][pAbriu] = true;
    
SetTimerEx("FecharBASE51"5000false"i"playerid);
    
format(stringsizeof(string)," | INFO | O portão da base do clan %s localizada em San Fierro foi aberto !"dini_Get(pFile"cla"));
    
SendClientMessage(playerid,AmareloClarostring);
       }
    return 
1;
     }
     }

 
/* if((newkeys & KEY_CROUCH) && (IsPlayerInAnyVehicle(playerid)))
    {
        new string [ 128 ];
         if(IsPlayerInRangeOfPoint(playerid, 15.0,836.445,-2065.518,14.641))
        {
            if (PlayerInfo[ playerid ][pAbriu] == 1)
            {
                return 1;
            }
            MoveObject(portao1c,836.445,-2065.518,19.641, 2.0);
            PlayerInfo[ playerid ][pAbriu] = true;
            SetTimerEx("FecharPORTAOILHA", 5000, false, "i", playerid);
            format(string, sizeof(string)," | INFO | O portão da Ilha Foi Aberto !");
            SendClientMessage(playerid,Azul, string);
          }
        return 1;
    }
 */

     
if((newkeys KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new 
string 128 ];
         if(
IsPlayerInRangeOfPoint(playerid15.0, -1039.1999511719,-587.70001220703,33.799999237061))
        {
            if(
PlayerInfo[playerid][pGOETraficante] || PlayerInfo[playerid][pGOETerrorista] || PlayerInfo[playerid][pGOEAssassino]  || PlayerInfo[playerid][pGOELadrao]  || PlayerInfo[playerid][pGOEDono]|| IsPlayerAdmin(playerid))
            {
                
MoveObject(PortaoGOE,-1039.1999511719,-587.70001220703,28,2.0);
                
SetTimerEx("PortaoGOE1"5000false"i"playerid);
                
format(stringsizeof(string)," | INFO | O portão da GOE Foi Aberto !");
                
SendClientMessage(playerid,CorGOEstring);
              }
            return 
1;
         }
    }

    if((
newkeys KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new 
string 128 ];
         if(
IsPlayerInRangeOfPoint(playerid15.0, -1567.9055,662.2169,6.7592))
        {
           if(
PlayerInfo[playerid][pCorregedor] >= || PlayerInfo[playerid][pbOrecruta] || PlayerInfo[playerid][pbOsargento] || PlayerInfo[playerid][pbOaspirante] || PlayerInfo[playerid][pbOtenente] || PlayerInfo[playerid][pbOcapitao] || PlayerInfo[playerid][pbOmajor] || PlayerInfo[playerid][pbOcoronel] ||
           
PlayerInfo[playerid][pbOgeneral] || IsPlayerAdmin(playerid))
            {
                
SetObjectRot(abc1,00272);
                
SetTimerEx("PortaoABC"5000false"i"playerid);
                
format(stringsizeof(string)," | INFO | A cancela  Foi Aberta !");
                
SendClientMessage(playerid,CorBOPEstring);
              }
            return 
1;
         }
    }

     if((
newkeys KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new 
string 128 ];
         if(
IsPlayerInRangeOfPoint(playerid15.0, -1705.5439,683.7820,24.4590))
        {
            if(
PlayerInfo[playerid][pCorregedor] >= || PlayerInfo[playerid][pbOrecruta] || PlayerInfo[playerid][pbOsargento] || PlayerInfo[playerid][pbOaspirante] || PlayerInfo[playerid][pbOtenente] || PlayerInfo[playerid][pbOcapitao] || PlayerInfo[playerid][pbOmajor] || PlayerInfo[playerid][pbOcoronel] ||
            
PlayerInfo[playerid][pbOgeneral] || IsPlayerAdmin(playerid))
            {
                
SetObjectRot(abc2,00272);
                
SetTimerEx("PortaoABC2"5000false"i"playerid);
                
format(stringsizeof(string)," | INFO | A Segunda cancela  Foi Aberta !"); // SetObjectRot(abc1,0, 0, 272);
                
SendClientMessage(playerid,CorBOPEstring);
              }
            return 
1;
         }
    }


     if((
newkeys KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new 
string 128 ];
         if(
IsPlayerInRangeOfPoint(playerid15.0, -1527.8000488281,482.5,3.09999990463263))
        {
            if(
PlayerInfo[playerid][piRrecruta] || PlayerInfo[playerid][piRladrao] || PlayerInfo[playerid][piRassassino] || PlayerInfo[playerid][piRassassinoP] || PlayerInfo[playerid][piRtraficante] || PlayerInfo[playerid][piRterrorista] || PlayerInfo[playerid][piRsubdono] || PlayerInfo[playerid][piRdono] || IsPlayerAdmin(playerid))
            {
                
MoveObject(PortaoIRQ,-1527.8000488281,482.5,3.09999990463263,2.0);
                
SetTimerEx("PortaoIRQ1"5000false"i"playerid);
                
format(stringsizeof(string)," | INFO | O portão da PCC Foi Aberto !");
                
SendClientMessage(playerid,Vermelhostring);
              }
            return 
1;
         }
    }

    if((
newkeys KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new 
string 128 ];
         if(
IsPlayerInRangeOfPoint(playerid15.0135.21940.521.1))
        {
         if(
PlayerInfo[playerid][pFECrecruta] || PlayerInfo[playerid][pFECladrao] || PlayerInfo[playerid][pFECassassino] || PlayerInfo[playerid][pFECassassinoP] || PlayerInfo[playerid][pFECtraficante] || PlayerInfo[playerid][pFECterrorista] || PlayerInfo[playerid][pFECsubdono] || PlayerInfo[playerid][pFECdono] || IsPlayerAdmin(playerid))
            {
                
MoveObject(PortaoFEC,135.19999694824,1940.5,15.60000038147,2.0);
                
SetTimerEx("PortaoFEC1"5000false"i"playerid);
                
format(stringsizeof(string)," | INFO | O portão da FEC Foi Aberto !");
                
SendClientMessage(playerid,FECstring);
              }
            return 
1;
         }
    }

/*    if((newkeys & KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new string [ 128 ];
         if(IsPlayerInRangeOfPoint(playerid, 15.0, 1430.69, -1741.17, 15.10))
        {
             if(PlayerInfo[playerid][pbOrecruta] || PlayerInfo[playerid][pbOsargento] || PlayerInfo[playerid][pbOaspirante] || PlayerInfo[playerid][pbOtenente] || PlayerInfo[playerid][pbOcapitao] || PlayerInfo[playerid][pbOmajor] || PlayerInfo[playerid][pbOcoronel] || PlayerInfo[playerid][pbOgeneral] || IsPlayerAdmin(playerid))
            {
                MoveObject(PortaoB,1430.69, -1741.17, 5.1000,2.0);
                SetTimerEx("PortaoB1", 5000, false, "i", playerid);
                format(string, sizeof(string)," | INFO | O portão da BOPE Foi Aberto !");
                SendClientMessage(playerid,CorBOPE, string);
              }
            return 1;
         }
    } */

      
if((newkeys KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new 
string 128 ];
         if(
IsPlayerInRangeOfPoint(playerid15.0, -83.800003051758, -352.899993896483.2000000476837))
        {
            if(
PlayerInfo[playerid][pAL] == || PlayerInfo[playerid][pAL] == || PlayerInfo[playerid][pAL] == || PlayerInfo[playerid][pAL] == || PlayerInfo[playerid][pAL] == || PlayerInfo[playerid][pAL] == || PlayerInfo[playerid][pAL] == || PlayerInfo[playerid][pAL] == || IsPlayerAdmin(playerid))
            {
                
MoveObject(portaoAL,-83.800003051758, -352.899993896488.6000003814697,2.0);
                
SetTimerEx("FecharBASEAL"5000false"i"playerid);
                
format(stringsizeof(string)," | INFO | O portão da aL Foi Aberto !");
                
SendClientMessage(playerid,Vermelhostring);
              }
            return 
1;
         }
    }

    if((
newkeys KEY_LEFT) && (IsPlayerInAnyVehicle(playerid)))
    {
        new 
string [128];
         if(
IsPlayerInRangeOfPoint(playerid15.01588.0791015625, -1638.14062515.172611236572))
         {
            if(
PlayerInfo[playerid][pBTE] == || PlayerInfo[playerid][pBTE] == || PlayerInfo[playerid][pBTE] == || PlayerInfo[playerid][pBTE] == || PlayerInfo[playerid][pBTE] == 5)
            {
                
MoveObject(pdp2,1598.3291015625,-1638.1206054688,15.172611236572,2.0);
                
SetTimerEx("FecharBASEBTE"5000false"i"playerid);
                
format(stringsizeof(string)," | INFO | O portão da GER Foi Aberto !");
                
SendClientMessage(playerid,AzulClarostring);
              }
            return 
1;
         }
 }

/*    if((newkeys & KEY_CROUCH) && (IsPlayerInAnyVehicle(playerid)))
    {
        new string [ 128 ];
         if(IsPlayerInRangeOfPoint(playerid, 15.0,836.445,-2065.518,14.641))
        {
            if (PlayerInfo[ playerid ][pAbriu] == 1)
            {
                return 1;
            }
            MoveObject(portao1c,836.445,-2065.518,19.641, 2.0);
            PlayerInfo[ playerid ][pAbriu] = true;
            SetTimerEx("FecharPORTAOILHA", 5000, false, "i", playerid);
            format(string, sizeof(string)," | INFO | O portão da Ilha Foi Aberto !");
            SendClientMessage(playerid,Azul, string);
          }
        return 1;
    }
*/

    
new string[128];
    for(new 
0MAX_PROPc++)
    {
    
format(stringsizeof(string),"/Props/prop%d.ini"c);
    if(
dini_Int(string"TInt") == 1){
    if(
newkeys==KEY_SECONDARY_ATTACK && IsPlayerInRangeOfPoint(playerid2.0dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")))
    {
    new 
strx2[128];
    
format(STRXsizeof(STRX),"/Interiores/int%d.ini"dini_Int(string,"Int"));
    if(
dini_Exists(STRX)){
    
emcasa[playerid] = 1;
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    
CasaX[playerid] = X;
    
CasaY[playerid] = Y;
    
CasaZ[playerid] = Z;
    
SetPlayerVirtualWorld(playeridc);
    
SetPlayerInterior(playeriddini_Int(STRX,"Int"));
    
SetPlayerPos(playeriddini_Float(STRX,"EX"), dini_Float(STRX,"EY"), dini_Float(STRX,"EZ"));
    
format(strx2sizeof(strx2),"| INFO | Você entrou na Empresa %s ID:%d para sair use [Enter]"dini_Get(string"Nome"),c);
    
SendClientMessage(playerid0x8080FFFF,strx2);
    return 
1;
    }
    }
    }
    }
    if (
newkeys==KEY_SECONDARY_ATTACK && emcasa[playerid] == 1)
    {
    for(new 
0MAX_PROPc++)
    {
    
emcasa[playerid] = 0;
    
SetPlayerVirtualWorld(playerid0);
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playeridCasaX[playerid], CasaY[playerid], CasaZ[playerid]);
    
format(pfsizeof(pf),"| INFO | Você Saiu da Empresa %s "dini_Get(string"Nome"),c);
    
SendClientMessage(playerid0x8080FFFF,pf);
    return 
1;
    }
    }

    if(
newkeys == KEY_SECONDARY_ATTACK)
    {
    if(
PlayerToPoint(3.0playerid1154.7894,-1769.3828,16.5938)){//AgenciaLS
    
SetPlayerPos(playerid,1490.4620,1305.9231,1093.2964);
    
SetPlayerInterior(playerid3);
    
SetPlayerFacingAngle(playerid93.1800);
    
SetCameraBehindPlayerplayerid );
    
prefls[playerid] = 1;
    }
    if(
PlayerToPoint(3.0playerid, -1492.5999755859,920.09997558594,7.1999998092651)){//AgenciaSF
    
SetPlayerPos(playerid,1490.4620,1305.9231,1093.2964);
    
SetPlayerInterior(playerid3);
    
SetPlayerFacingAngle(playerid93.1800);
    
SetCameraBehindPlayerplayerid );
    
prefsf[playerid] = 1;
    }
    if(
PlayerToPoint(3.0playerid,  2449.3000488281,1284,11.199999809265)){//AgenciaLV
    
SetPlayerPos(playerid,1490.4620,1305.9231,1093.2964);
    
SetPlayerInterior(playerid3);
    
SetPlayerFacingAngle(playerid93.1800);
    
SetCameraBehindPlayerplayerid );
    
preflv[playerid] = 1;
    }
    if(
PlayerToPoint(3.0playerid, -2.2727,1209.7877,19.3527)){//AgenciaFC
    
SetPlayerPos(playerid,1490.4620,1305.9231,1093.2964);
    
SetPlayerFacingAngle(playerid93.1800);
    
SetCameraBehindPlayerplayerid );
    
SetPlayerInterior(playerid3);
    }
    if(
PlayerToPoint(3.0playerid1555.4916,-1675.6893,16.1953)){//DPLS
    
SetPlayerPos(playerid,246.7995,65.9249,1003.6406);
    
SetPlayerInterior(playerid,6);
    
Dplos[playerid] = 1;
    }
    if(
PlayerToPoint(3.0playerid246.9346,62.4051,1003.6406)){
    
SetPlayerPos(playerid,1552.5618,-1675.5143,16.1953);
    
SetPlayerInterior(playerid,0);
    }
    if(
dentrocasa[playerid] == 0)
    {
    new 
timestamp GetTickCount();
    if(
timestamp inhousepickup[playerid] > 2000)
    {
    return 
1;
    } 
SnowBorn is offline   Reply With Quote
Old 21/12/2017, 12:20 PM   #2
JonathanFeitosa
High-roller
 
Join Date: Jan 2011
Location: Manaus/AM
Posts: 2,760
Reputation: 346
Default Re: Erros '-'

O primeiro erro provavelmente está ocorrendo porque você está botando o código em outra callback que não é a OnPlayerStateChange.

Já o segundo erro, existem duas callbacks OnPlayerKeyStateChange no seu GameMode. Pegue o que tem dentro de uma e bote dentro da outra e por fim apague a que você retirou as linhas de comando.

Você pode usar CTRL+F para buscar.

PS: Seja objetivo no título do tópico. "Erros" não resume o assunto do que se trata.
__________________
Programador Java & Android
Instagram: jonathanfeitosajfs
JonathanFeitosa 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] Erros e Mais erros no GTA Win8 Hiuship Português/Portuguese 19 15/10/2013 11:56 PM
[Ajuda] Erros Iguais [26 Erros] dEvasT._ Português/Portuguese 5 17/04/2013 09:09 PM
[DUV] ERROS MUITOS ERROS luandriftlogkdr Português/Portuguese 8 04/11/2010 12:37 AM
[ERROS]Erros AO Compilar O Aadmin!!! andersongr98 Português/Portuguese 5 20/07/2010 10:54 PM
[ERROS] Erros de pawno Blacknedvertigo Português/Portuguese 3 19/04/2010 10:35 PM


All times are GMT. The time now is 05:47 PM.


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