SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 17/06/2020, 04:00 PM   #1
Aguiar
Little Clucker
 
Join Date: Jun 2020
Posts: 1
Reputation: 0
Default Conflitos com 'newkeys'

Bom dia estou a ter problemas com a KEY_YES, não está funcionando eu já tirei a verificação se está no local e não vai
a baixo se segue o código

PHP Code:
if((oldkeys KEY_YES) && !(newkeys KEY_YES))
    {
        if(
IsPlayerInRangeOfPoint(playerid3.01363.65234, -1749.9694813.05720))
        {
            if(!
IsPlayerInAnyVehicle(playerid))
            {
                
ShowPlayerDialog(playeridDIALOG_ATMDIALOG_STYLE_LIST"{FFFFFF}ATM""Saldo bancário \nDepositar dinheiro\nSacar dinheiro\nTransferencia bancária""Selecionar""Cancelar");
            }
        }
        return 
1;
    } 
Aguiar is offline   Reply With Quote
Old 17/06/2020, 04:56 PM   #2
darkxdll
High-roller
 
darkxdll's Avatar
 
Join Date: Jul 2012
Location: C:\Windows\DLLs
Posts: 1,633
Reputation: 89
Default Re: Conflitos com 'newkeys'

PHP Code:
if((oldkeys KEY_YES) && !(newkeys KEY_YES)) 
Ta ao contrário isso aí, não esta?

Correto:
PHP Code:
if((newkeys KEY_YES) && !(oldkeys KEY_YES)) 
__________________
Discord: darkxdll#9097

Consulte valores.
darkxdll is offline   Reply With Quote
Old 17/06/2020, 07:15 PM   #3
MateGPlay
Big Clucker
 
MateGPlay's Avatar
 
Join Date: Jan 2018
Location: Florianópolis, Santa Catarina
Posts: 124
Reputation: 1
Default Re: Conflitos com 'newkeys'

Tenta assim:
PHP Code:
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) //topo da gm

public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
PRESSED(KEY_YES))
            if(
IsPlayerInRangeOfPoint(playerid3.01363.65234, -1749.9694813.05720) && !IsPlayerInAnyVehicle(playerid))
                    
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"{FFFFFF}ATM""Saldo bancário \nDepositar dinheiro\nSacar dinheiro\nTransferencia bancária""Selecionar""Cancelar");
return 
1;

MateGPlay 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] Conflitos MarcosPauloRibeiro Português/Portuguese 1 04/02/2020 09:18 AM
[Ajuda] Conflitos no GM Poseidon4625 Português/Portuguese 2 21/12/2017 02:08 PM
[Ajuda] Dialogs em conflitos ThiagoMikael Português/Portuguese 8 22/09/2017 10:15 PM
[Ajuda] Conflitos de comandos OliverK Português/Portuguese 3 27/05/2015 12:34 PM
[Ajuda] TextDraw dando conflitos MatheusAlcapone Português/Portuguese 4 06/08/2014 10:33 PM


All times are GMT. The time now is 01:13 AM.


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