[Ajuda] Onplayerkeystatechange
#1

Olб,

Estou a ter problemas pois as vezes quando aperto Y nгo estб indo tem vezes que vai outras nгo poderia me dizer porque?

OBS: a callback tem mais que isso.

PHP Code:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys == KEY_YES)
    {
        if(
IsPlayerInRangeOfPoint(playerid3.01363.65234, -1749.9694813.05720) || IsPlayerInRangeOfPoint(playerid3.01418.08093, -1486.9149220.01770))
        {
            
ShowPlayerDialog(playeridDIALOG_MENU_ATMDIALOG_STYLE_LIST"{F4FA58}Caixa ATM""SALDO\nSACAR""Selecionar""Cancelar");
        }
    }
    if(
newkeys == KEY_YES)
    {
        if(
IsPlayerInRangeOfPoint(playerid2.01215.4077, -1640.122911.7969))
        {
            
ShowPlayerDialog(playeridDIALOG_INFOBASEDIALOG_STYLE_LIST"{FE2E2E}Armazйm do Comando Vermelho:""DROGAS""Selecionar""Cancelar");
            return 
1;
        }
    }
    return 
1;

Serб que tenho que usar else?

Obrigado desde jб
Reply


Messages In This Thread
Onplayerkeystatechange - by HelderPT - 27.04.2020, 20:53
Re: Onplayerkeystatechange - by Ermanhaut - 27.04.2020, 21:00
Re: Onplayerkeystatechange - by mau.tito - 27.04.2020, 21:02
Re: Onplayerkeystatechange - by HelderPT - 27.04.2020, 21:12
Re: Onplayerkeystatechange - by HelderPT - 27.04.2020, 21:35
Re: Onplayerkeystatechange - by RiqueP - 28.04.2020, 02:28
Re: Onplayerkeystatechange - by Vithinn - 28.04.2020, 03:36
Re: Onplayerkeystatechange - by HelderPT - 28.04.2020, 08:37
Re: Onplayerkeystatechange - by MateGPlay - 28.04.2020, 16:48
Re: Onplayerkeystatechange - by Ermanhaut - 29.04.2020, 01:46

Forum Jump:


Users browsing this thread: 3 Guest(s)