[Ajuda] Problema com Comando
#3

Quote:
Originally Posted by Relaxed
Посмотреть сообщение
PHP код:
CMD:criarportaoplayeridparams[] )
{
    if ( 
pInfo[playerid][MoedasCash] >= 250 )
    {
            if( 
isnullparams) )
                return 
SendClientMessageplayerid, -1"[ > ]: /criarportao [Senha]" );
            if( !
strvalparams ) )
                return 
SendClientMessageplayerid, -1"[ > ]: USE SOMENTE NUMEROS." );
            if( 
IsPlayerInAnyVehicleplayerid ) )
                return 
SendClientMessageplayerid, -1"[ > ] Saia Do Veiculo !" );
            new 
Float:pPosPortao[4];
            
GetPlayerPosplayeridpPosPortao[0], pPosPortao[1], pPosPortao[2] );
            
GetPlayerFacingAngleplayeridpPosPortao[3] );
            
CreateGateplayeridstrvalparams ), pPosPortao[0], pPosPortao[1], pPosPortao[2], pPosPortao[3] );
            
SendClientMessageplayerid, -1"[ > ] Portгo Criado Com Sucesso" );
            
pInfo[playerid][MoedasCash] -= 250;
               
BPH_SetInt(gFile"MoedasCash"BPH_GetInt(gFile"MoedasCash") -= 250);
    } else return    
SendClientMessage(playeridAZUL_BPH"Vocк nгo tem Cash suficiente criar um Portгo.");
    return 
1;

PHP код:
CMD:destruirportaoplayeridparams[] )
{
    for( new 
0!= MAX_GATESi++ )
    {
        if( 
GateInfo[i][gCreated] == )
        {
            if( 
IsPlayerInRangeOfPointplayerid10.0GateInfo[i][gX], GateInfo[i][gY], GateInfo[i][gZ] ) )
            {
                  new 
szName[24];
                
GetPlayerNameplayeridszName24 );
                if( !
strcmpszNameGateInfo[i][gPlacedBy], true ) || IsPlayerAdminplayerid ) )
                {
                    
DestroyObjectGateInfo[i][gObject] );
                    
formatGateInfo[i][gPlacedBy], 24"None" );
                    
GateInfo[i][gCreated] = 0;
                    
GateInfo[i][gX] = 0.0;
                    
GateInfo[i][gY] = 0.0;
                    
GateInfo[i][gZ] = 0.0;
                    
GateInfo[i][gA] = 0.0;
                    
GateInfo[i][gPassword] = 0;
                    
GateInfo[i][gStatus] = GATE_STATE_CLOSED;
                    
pInfo[playerid][MoedasCash] += 250;
                    
BPH_SetInt(gFile"MoedasCash"BPH_GetInt(gFile"MoedasCash") += 250);
                    
SendClientMessageplayerid, -1"[ > ] Voce Destruiu o portao e recebeu seus 250 Cash de volta para criar outro." );
                    new 
file[32];
                    
formatfile32"Gates/gate_%d.ini");
                    if( 
BPH_FileExistsfile ) )
                        
BPH_RemoveFilefile );
                    break;
                }
                else
                    return 
SendClientMessageplayerid, -1"Voce Nao E Dono Deste Portгo" );
            }
            else
                return 
SendClientMessageplayerid, -1"Nao Hб Portгo no local !" );
        }
    }
    return 
1;

Deu erro:
C:\Users\Natan\Desktop\Brasil Power Hard\gamemodes\BPH.pwn(58693) : warning 217: loose indentation
C:\Users\Natan\Desktop\Brasil Power Hard\gamemodes\BPH.pwn(58693) : error 022: must be lvalue (non-constant)
C:\Users\Natan\Desktop\Brasil Power Hard\gamemodes\BPH.pwn(58693) : warning 215: expression has no effect
C:\Users\Natan\Desktop\Brasil Power Hard\gamemodes\BPH.pwn(58693) : error 001: expected token: ";", but found ")"
C:\Users\Natan\Desktop\Brasil Power Hard\gamemodes\BPH.pwn(58693) : error 029: invalid expression, assumed zero
C:\Users\Natan\Desktop\Brasil Power Hard\gamemodes\BPH.pwn(58693) : fatal error 107: too many error messages on one line

Nessa linha:
PHP код:
               BPH_SetInt(gFile"MoedasCash"BPH_GetInt(gFile"MoedasCash") -= 250); 
Reply


Messages In This Thread
Problema com Comando - by NATANGameron - 07.04.2017, 00:52
Re: Problema com Comando - by Relaxed - 07.04.2017, 01:14
Re: Problema com Comando - by NATANGameron - 07.04.2017, 14:38
Re: Problema com Comando - by Relaxed - 07.04.2017, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)