Problem in Imput Dialog.
#3

It's :
pawn Код:
strval(inputtext);
because it's a variable...NOT strlen
pawn Код:
if(dialogid == DIALOG_BET5)
    {
        if(strval(inputtext) >= 1)
        {
            PokerCardsInfo[Pot] = PokerCardsInfo[Pot]+strval(inputtext);
            new Name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, Name, sizeof(Name));
            new string[128];
            format(string, sizeof(string), "%s has bet %d", Name, strval(inputtext));
            ProxDetector(10.0, playerid, string, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
            if(IsPlayerConnected(PokerCardsInfo[P6]))
            {
                ShowPlayerDialog(PokerCardsInfo[P6], DIALOG_POKER6, DIALOG_STYLE_LIST, "Poker", "Bet\nCheck\nFold", "Continue", "");
            }
            else
            {
                new str[128];
                format(str, sizeof(str), "Everyone made their bets, the dealer should now /givecards.", Name);
                ProxDetector(10.0, playerid, str, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
            }
            return 1;
        }
        else
        {
            new Name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, Name, sizeof(Name));
            new string[128];
            format(string, sizeof(string), "%s has bet 0 and is out.", Name);
            ProxDetector(10.0, playerid, string, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
            PokerCardsInfo[P5] = 500;
            PokerPlayerInfo[playerid][Playing] = 0;
            if(IsPlayerConnected(PokerCardsInfo[P6]))
            {
                ShowPlayerDialog(PokerCardsInfo[P6], DIALOG_POKER6, DIALOG_STYLE_LIST, "Poker", "Bet\nCheck\nFold", "Continue", "");
            }
            else
            {
                new str[128];
                format(str, sizeof(str), "Everyone made their bets, the dealer should now /givecards.", Name);
                ProxDetector(10.0, playerid, str, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
            }
            return 1;
        }
    }
Try that now...:P
Reply


Messages In This Thread
Problem in Imput Dialog. - by ricardo178 - 27.07.2012, 07:36
Re: Problem in Imput Dialog. - by doreto - 27.07.2012, 07:39
Re: Problem in Imput Dialog. - by Cjgogo - 27.07.2012, 07:40
Re: Problem in Imput Dialog. - by Tika Spic - 27.07.2012, 07:40
Re : Problem in Imput Dialog. - by ricardo178 - 27.07.2012, 07:52

Forum Jump:


Users browsing this thread: 1 Guest(s)