• Уважаемый Гость.
    - Прежде чем создать свою тему, пожалуйста, попробуй воспользоваться этим -> ПОИСКОМ !!!
    - После решения Вашего вопроса (проблемы) - нажмите "Лучший ответ", на сообщении, которое его решило. За игнорирование этого действия - Вы получите соответствующее предупреждение. Мы - стараемся Вам помочь. Уделите 10 секунд - чтобы нажать кнопку. (Если у Вас нет такой возможности - укажите в последнем своем сообщении какой ответ Вы считаете лучшим. Наши модераторы сделают это за Вас)
    ЗАПРЕЩЕНО:
    - Cоздавать темы с названиями "Помогите", "Плиз", "Ошибка", "Не могу найти", "Хелп" и тому подобное;
    - Cоздавать темы без детального описания того, что нужно исправить.
    - Cоздавать темы из одного скриншота.
    За игнор правил форума - Ваша тема будет удалена, а Вы получите системное предупреждение.

local variable "pid" shadows a variable at a preceding level

Luxgen

Новичок
Приветствую. Вырезал систему покера из FilterScripts вставил в свой мод но почему то появились ошибки а код вроде бы и правильный.
Ошибки:
Код:
(29612) : warning 219: local variable "pid" shadows a variable at a preceding level
(29614) : warning 213: tag mismatch
(29614) : warning 206: redundant test: constant expression is non-zero
(29612) : warning 204: symbol is assigned a value that is never used: "pid"
(29624) : warning 219: local variable "pid" shadows a variable at a preceding level
(29626) : warning 213: tag mismatch
(29626) : warning 206: redundant test: constant expression is non-zero
(29624) : warning 204: symbol is assigned a value that is never used: "pid"
(29631) : warning 219: local variable "pid" shadows a variable at a preceding level
(29633) : warning 213: tag mismatch
(29633) : warning 206: redundant test: constant expression is non-zero
(29635) : warning 213: tag mismatch
(29631) : warning 204: symbol is assigned a value that is never used: "pid"
(29724) : warning 219: local variable "pid" shadows a variable at a preceding level
(29726) : warning 213: tag mismatch
(29726) : warning 206: redundant test: constant expression is non-zero
(29724) : warning 204: symbol is assigned a value that is never used: "pid"
(29814) : warning 219: local variable "pid" shadows a variable at a preceding level
(29816) : warning 213: tag mismatch
(29816) : warning 206: redundant test: constant expression is non-zero
(29814) : warning 204: symbol is assigned a value that is never used: "pid"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
И сам код реагирует в паблик ( public PokerPulse(tableid) ) На:
PHP:
            // Name
            new name[MAX_PLAYER_NAME+1];
            GetPlayerName(playerid, name, sizeof(name));
            for(new td = 0; td < 6; td++) {
                new pid = PokerTable[tableid][pkrSlot][td]; //На этот код (warning 219 / warning 204) ///Строка29612

                if(pid != -1) PlayerTextDrawSetString(pid, PlayerPokerUI[pid][0+tmp], name); //И на этот код (warning 213 / warning 206) ///Строка29614
            }
Сам весь код паблика:
PHP:
forward PokerPulse(tableid);
public PokerPulse(tableid)
{
    // Idle Animation Loop & Re-seater
    for(new i = 0; i < 6; i++) {
        new playerid = PokerTable[tableid][pkrSlot][i];

        if(playerid != -1) {

            // Disable Weapons
            SetPlayerArmedWeapon(playerid,0);

            new idleRandom = random(100);
            if(idleRandom >= 90) {
                SetPlayerPosObjectOffset(PokerTable[tableid][pkrObjectID], playerid, PokerTableMiscObjOffsets[i][0], PokerTableMiscObjOffsets[i][1], PokerTableMiscObjOffsets[i][2]);
                SetPlayerFacingAngle(playerid, PokerTableMiscObjOffsets[i][5]+90.0);

                // Animation
                if(GetPVarInt(playerid, "pkrActiveHand")) {
                    ApplyAnimation(playerid, "CASINO", "cards_loop", 4.1, 0, 1, 1, 1, 1, 1);
                }
            }
        }
    }

    // 3D Text Label
    Update3DTextLabelText(PokerTable[tableid][pkrText3DID], COLOR_GOLD, " ");

    if(PokerTable[tableid][pkrActivePlayers] >= 2 && PokerTable[tableid][pkrActive] == 2) {

        // Count the number of active players with more than $0, activate the round if more than 1 gets counted.
        new tmpCount = 0;
        for(new i = 0; i < 6; i++) {
            new playerid = PokerTable[tableid][pkrSlot][i];

            if(playerid != -1) {
                if(GetPVarInt(playerid, "pkrChips") > 0) {
                    tmpCount++;
                }
            }
        }

        if(tmpCount > 1) {
            PokerTable[tableid][pkrActive] = 3;
            PokerTable[tableid][pkrDelay] = PokerTable[tableid][pkrSetDelay];
        }
    }

    if(PokerTable[tableid][pkrPlayers] < 2 && PokerTable[tableid][pkrActive] == 3) {
        // Pseudo Code (Move Pot towards last player's chip count)

        for(new i = 0; i < 6; i++) {
            new playerid = PokerTable[tableid][pkrSlot][i];

            if(playerid != -1) {
                SetPVarInt(playerid, "pkrChips", GetPVarInt(playerid, "pkrChips")+PokerTable[tableid][pkrPot]);

                LeavePokerTable(playerid);
                ResetPokerTable(tableid);
                JoinPokerTable(playerid, tableid);
            }
        }
    }

    // Winner Loop
    if(PokerTable[tableid][pkrActive] == 4)
    {
        if(PokerTable[tableid][pkrDelay] == 20) {
            new endBetsSoundID[] = {5826, 5827};
            new randomEndBetsSoundID = random(sizeof(endBetsSoundID));
            GlobalPlaySound(endBetsSoundID[randomEndBetsSoundID], PokerTable[tableid][pkrX], PokerTable[tableid][pkrY], PokerTable[tableid][pkrZ]);

            for(new i = 0; i < 6; i++) {
                new playerid = PokerTable[tableid][pkrSlot][i];

                if(playerid != -1) {
                    PokerOptions(playerid, 0);
                }
            }
        }

        if(PokerTable[tableid][pkrDelay] > 0) {
            PokerTable[tableid][pkrDelay]--;
            if(PokerTable[tableid][pkrDelay] <= 5 && PokerTable[tableid][pkrDelay] > 0) {
                for(new i = 0; i < 6; i++) {
                    new playerid = PokerTable[tableid][pkrSlot][i];

                    if(playerid != -1) PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
                }
            }
        }

        if(PokerTable[tableid][pkrDelay] == 0) {
            return ResetPokerRound(tableid);
        }

        if(PokerTable[tableid][pkrDelay] == 19) {
            // Anaylze Cards
            new resultArray[6];
            for(new i = 0; i < 6; i++) {
                new playerid = PokerTable[tableid][pkrSlot][i];
                new cards[7];

                if(playerid != -1) {
                    if(GetPVarInt(playerid, "pkrActiveHand")) {
                        cards[0] = GetPVarInt(playerid, "pkrCard1");
                        cards[1] = GetPVarInt(playerid, "pkrCard2");

                        new tmp = 0;
                        for(new c = 2; c < 7; c++) {
                            cards[c] = PokerTable[tableid][pkrCCards][tmp];
                            tmp++;
                        }

                        SetPVarInt(playerid, "pkrResult", AnaylzePokerHand(playerid, cards));
                    }
                }
            }

            // Sorting Results (Highest to Lowest)
            for(new i = 0; i < 6; i++) {
                new playerid = PokerTable[tableid][pkrSlot][i];

                if(playerid != -1) {
                    if(GetPVarInt(playerid, "pkrActiveHand")) {
                        resultArray[i] = GetPVarInt(playerid, "pkrResult");
                    }
                }
            }
            BubbleSort(resultArray, sizeof(resultArray));

            // Determine Winner(s)
            for(new i = 0; i < 6; i++) {
                if(resultArray[5] == resultArray[i])
                    PokerTable[tableid][pkrWinners]++;
            }

            // Notify Table of Winner & Give Rewards
            for(new i = 0; i < 6; i++) {
                new playerid = PokerTable[tableid][pkrSlot][i];

                if(playerid != -1) {
                    if(PokerTable[tableid][pkrWinners] > 1) {
                        // Split
                        if(resultArray[5] == GetPVarInt(playerid, "pkrResult")) {
                            new splitPot = PokerTable[tableid][pkrPot]/PokerTable[tableid][pkrWinners];

                            SetPVarInt(playerid, "pkrWinner", 1);
                            SetPVarInt(playerid, "pkrChips", GetPVarInt(playerid, "pkrChips")+splitPot);

                            PlayerPlaySound(playerid, 5821, 0.0, 0.0, 0.0);
                        } else {
                            PlayerPlaySound(playerid, 31202, 0.0, 0.0, 0.0);
                        }
                    } else {
                        // Single Winner
                        if(resultArray[5] == GetPVarInt(playerid, "pkrResult")) {
                            SetPVarInt(playerid, "pkrWinner", 1);
                            SetPVarInt(playerid, "pkrChips", GetPVarInt(playerid, "pkrChips")+PokerTable[tableid][pkrPot]);
                            PokerTable[tableid][pkrWinnerID] = playerid;

                            new winnerSoundID[] = {5847, 5848, 5849, 5854, 5855, 5856};
                            new randomWinnerSoundID = random(sizeof(winnerSoundID));
                            PlayerPlaySound(playerid, winnerSoundID[randomWinnerSoundID], 0.0, 0.0, 0.0);
                        } else {
                            PlayerPlaySound(playerid, 31202, 0.0, 0.0, 0.0);
                        }
                    }
                }
            }
        }
    }

    // Game Loop
    if(PokerTable[tableid][pkrActive] == 3)
    {
        if(PokerTable[tableid][pkrActiveHands] == 1 && PokerTable[tableid][pkrRound] == 1) {
            PokerTable[tableid][pkrStage] = 0;
            PokerTable[tableid][pkrActive] = 4;
            PokerTable[tableid][pkrDelay] = 20+1;

            for(new i = 0; i < 6; i++) {
                new playerid = PokerTable[tableid][pkrSlot][i];

                if(playerid != -1) {
                    if(GetPVarInt(playerid, "pkrActiveHand")) {
                        SetPVarInt(playerid, "pkrHide", 1);
                    }
                }
            }
        }

        // Delay Time Controller
        if(PokerTable[tableid][pkrDelay] > 0) {
            PokerTable[tableid][pkrDelay]--;
            if(PokerTable[tableid][pkrDelay] <= 5 && PokerTable[tableid][pkrDelay] > 0) {
                for(new i = 0; i < 6; i++) {
                    new playerid = PokerTable[tableid][pkrSlot][i];

                    if(playerid != -1) PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
                }
            }
        }

        // Assign Blinds & Active Player
        if(PokerTable[tableid][pkrRound] == 0 && PokerTable[tableid][pkrDelay] == 5)
        {
            for(new i = 0; i < 6; i++) {
                new playerid = PokerTable[tableid][pkrSlot][i];

                if(playerid != -1) {
                    SetPVarInt(playerid, "pkrStatus", 1);
                }
            }

            PokerAssignBlinds(tableid);
        }

        // If no round active, start it.
        if(PokerTable[tableid][pkrRound] == 0 && PokerTable[tableid][pkrDelay] == 0)
        {
            PokerTable[tableid][pkrRound] = 1;

            for(new i = 0; i < 6; i++) {
                new playerid = PokerTable[tableid][pkrSlot][i];

                if(playerid != -1) {
                    SetPVarString(playerid, "pkrStatusString", " ");
                }
            }

            // Shuffle Deck & Deal Cards & Allocate Community Cards
            PokerShuffleDeck(tableid);
            PokerDealHands(tableid);
            PokerRotateActivePlayer(tableid);
        }

        // Round Logic

        // Time Controller
        for(new i = 0; i < 6; i++) {
            new playerid = PokerTable[tableid][pkrSlot][i];

            if(playerid != -1) {
                if(GetPVarInt(playerid, "pkrActivePlayer")) {
                    SetPVarInt(playerid, "pkrTime", GetPVarInt(playerid, "pkrTime")-1);
                    if(GetPVarInt(playerid, "pkrTime") == 0) {
                        new name[24];
                        GetPlayerName(playerid, name, sizeof(name));

                        if(GetPVarInt(playerid, "pkrActionChoice")) {
                            DeletePVar(playerid, "pkrActionChoice");

                            ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "Close", "Close", "Close", "Close");
                        }

                        PokerFoldHand(playerid);
                        PokerRotateActivePlayer(tableid);
                    }
                }
            }
        }
    }

    // Update GUI
    for(new i = 0; i < 6; i++) {
        new playerid = PokerTable[tableid][pkrSlot][i];
        new tmp, tmpString[128];

        // Set Textdraw Offset
        switch(i)
        {
            case 0: { tmp = 0; }
            case 1: { tmp = 5; }
            case 2: { tmp = 10; }
            case 3: { tmp = 15; }
            case 4: { tmp = 20; }
            case 5: { tmp = 25; }
        }

        if(playerid != -1) {
            // Debug
            new stringp[512];
            format(stringp, sizeof(stringp), "Debug:~n~pkrActive: %d~n~pkrPlayers: %d~n~pkrActivePlayers: %d~n~pkrActiveHands: %d~n~pkrPos: %d~n~pkrDelay: %d~n~pkrRound: %d~n~pkrStage: %d~n~pkrActiveBet: %d~n~pkrRotations: %d",
                PokerTable[tableid][pkrActive],
                PokerTable[tableid][pkrPlayers],
                PokerTable[tableid][pkrActivePlayers],
                PokerTable[tableid][pkrActiveHands],
                PokerTable[tableid][pkrPos],
                PokerTable[tableid][pkrDelay],
                PokerTable[tableid][pkrRound],
                PokerTable[tableid][pkrStage],
                PokerTable[tableid][pkrActiveBet],
                PokerTable[tableid][pkrRotations]
            );
            format(stringp, sizeof(stringp), "%s~n~----------~n~", stringp);

            new sstring[128];
            GetPVarString(playerid, "pkrStatusString", sstring, 128);
            format(string, sizeof(string), "%spkrTableID: %d~n~pkrCurrentBet: %d~n~pkrStatus: %d~n~pkrRoomLeader: %d~n~pkrRoomBigBlind: %d~n~pkrRoomSmallBlind: %d~n~pkrRoomDealer: %d~n~pkrActivePlayer: %d~n~pkrActiveHand: %d~n~pkrStatusString: %s",
                string,
                GetPVarInt(playerid, "pkrTableID")-1,
                GetPVarInt(playerid, "pkrCurrentBet"),
                GetPVarInt(playerid, "pkrStatus"),
                GetPVarInt(playerid, "pkrRoomLeader"),
                GetPVarInt(playerid, "pkrRoomBigBlind"),
                GetPVarInt(playerid, "pkrRoomSmallBlind"),
                GetPVarInt(playerid, "pkrRoomDealer"),
                GetPVarInt(playerid, "pkrActivePlayer"),
                GetPVarInt(playerid, "pkrActiveHand"),
                sstring
            );

            PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][45], string);

            // Name
            new name[MAX_PLAYER_NAME+1];
            GetPlayerName(playerid, name, sizeof(name));
            for(new td = 0; td < 6; td++) {
                new pid = PokerTable[tableid][pkrSlot][td];

                if(pid != -1) PlayerTextDrawSetString(pid, PlayerPokerUI[pid][0+tmp], name);
            }

            // Chips
            if(GetPVarInt(playerid, "pkrChips") > 0) {
                format(tmpString, sizeof(tmpString), "$%d", GetPVarInt(playerid, "pkrChips"));
            } else {
                format(tmpString, sizeof(tmpString), "~r~$%d", GetPVarInt(playerid, "pkrChips"));
            }
            for(new td = 0; td < 6; td++) {
                new pid = PokerTable[tableid][pkrSlot][td];

                if(pid != -1) PlayerTextDrawSetString(pid, PlayerPokerUI[pid][1+tmp], tmpString);
            }

            // Cards
            for(new td = 0; td < 6; td++) {
                new pid = PokerTable[tableid][pkrSlot][td];

                if(pid != -1) {
                    if(GetPVarInt(playerid, "pkrActiveHand")) {
                        if(playerid != pid) {
                            if(PokerTable[tableid][pkrActive] == 4 && PokerTable[tableid][pkrDelay] <= 19 && GetPVarInt(playerid, "pkrHide") != 1) {
                                format(tmpString, sizeof(tmpString), "%s", DeckTextdrw[GetPVarInt(playerid, "pkrCard1")+1]);
                                PlayerTextDrawSetString(pid, PlayerPokerUI[pid][2+tmp], tmpString);
                                format(tmpString, sizeof(tmpString), "%s", DeckTextdrw[GetPVarInt(playerid, "pkrCard2")+1]);
                                PlayerTextDrawSetString(pid, PlayerPokerUI[pid][3+tmp], tmpString);
                            } else {
                                PlayerTextDrawSetString(pid, PlayerPokerUI[pid][2+tmp], DeckTextdrw[0]);
                                PlayerTextDrawSetString(pid, PlayerPokerUI[pid][3+tmp], DeckTextdrw[0]);
                            }
                        } else {
                            format(tmpString, sizeof(tmpString), "%s", DeckTextdrw[GetPVarInt(playerid, "pkrCard1")+1]);
                            PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][2+tmp], tmpString);

                            format(tmpString, sizeof(tmpString), "%s", DeckTextdrw[GetPVarInt(playerid, "pkrCard2")+1]);
                            PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][3+tmp], tmpString);
                        }
                    } else {
                        PlayerTextDrawSetString(pid, PlayerPokerUI[pid][2+tmp], " ");
                        PlayerTextDrawSetString(pid, PlayerPokerUI[pid][3+tmp], " ");
                    }
                }
            }

            // Status
            if(PokerTable[tableid][pkrActive] < 3) {
                format(tmpString, sizeof(tmpString), " ");
            } else if(GetPVarInt(playerid, "pkrActivePlayer") && PokerTable[tableid][pkrActive] == 3) {
                format(tmpString, sizeof(tmpString), "0:%d", GetPVarInt(playerid, "pkrTime"));
            } else {
                if(PokerTable[tableid][pkrActive] == 3 && PokerTable[tableid][pkrDelay] > 5) {
                    SetPVarString(playerid, "pkrStatusString", " ");
                }

                if(PokerTable[tableid][pkrActive] == 4 && PokerTable[tableid][pkrDelay] == 19) {
                    if(PokerTable[tableid][pkrWinners] == 1) {
                        if(GetPVarInt(playerid, "pkrWinner")) {
                            format(tmpString, sizeof(tmpString), "+$%d", PokerTable[tableid][pkrPot]);
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        } else {
                            format(tmpString, sizeof(tmpString), "-$%d", GetPVarInt(playerid, "pkrCurrentBet"));
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        }
                    } else {
                        if(GetPVarInt(playerid, "pkrWinner")) {
                            new splitPot = PokerTable[tableid][pkrPot]/PokerTable[tableid][pkrWinners];
                            format(tmpString, sizeof(tmpString), "+$%d", splitPot);
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        } else {
                            format(tmpString, sizeof(tmpString), "-$%d", GetPVarInt(playerid, "pkrCurrentBet"));
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        }
                    }
                }

                if(PokerTable[tableid][pkrActive] == 4 && PokerTable[tableid][pkrDelay] == 19) {
                    if(GetPVarInt(playerid, "pkrActiveHand") && GetPVarInt(playerid, "pkrHide") != 1) {
                        new resultString[64];
                        GetPVarString(playerid, "pkrResultString", resultString, 64);
                        format(tmpString, sizeof(tmpString), "%s", resultString);
                        SetPVarString(playerid, "pkrStatusString", resultString);
                    }
                }

                if(PokerTable[tableid][pkrActive] == 4 && PokerTable[tableid][pkrDelay] == 10) {
                    if(PokerTable[tableid][pkrWinners] == 1) {
                        if(GetPVarInt(playerid, "pkrWinner")) {
                            format(tmpString, sizeof(tmpString), "+$%d", PokerTable[tableid][pkrPot]);
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        } else {
                            format(tmpString, sizeof(tmpString), "-$%d", GetPVarInt(playerid, "pkrCurrentBet"));
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        }
                    } else {
                        if(GetPVarInt(playerid, "pkrWinner")) {
                            new splitPot = PokerTable[tableid][pkrPot]/PokerTable[tableid][pkrWinners];
                            format(tmpString, sizeof(tmpString), "+$%d", splitPot);
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        } else {
                            format(tmpString, sizeof(tmpString), "-$%d", GetPVarInt(playerid, "pkrCurrentBet"));
                            SetPVarString(playerid, "pkrStatusString", tmpString);
                        }
                    }
                }

                GetPVarString(playerid, "pkrStatusString", tmpString, 128);
            }

            for(new td = 0; td < 6; td++) {
                new pid = PokerTable[tableid][pkrSlot][td];

                if(pid != -1) PlayerTextDrawSetString(pid, PlayerPokerUI[pid][4+tmp], tmpString);
            }

            // Pot
            if(PokerTable[tableid][pkrDelay] > 0 && PokerTable[tableid][pkrActive] == 3) {
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][37], "Texas Holdem Poker");
            } else if(PokerTable[tableid][pkrActive] == 2) {
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][37], "Texas Holdem Poker");
            } else if(PokerTable[tableid][pkrActive] == 3) {
                format(tmpString, sizeof(tmpString), "Pot: $%d", PokerTable[tableid][pkrPot]);
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][37], tmpString);
            } else if(PokerTable[tableid][pkrActive] == 4 && PokerTable[tableid][pkrDelay] < 19) {
                if(PokerTable[tableid][pkrWinnerID] != -1) {
                    new winnerName[24];
                    GetPlayerName(PokerTable[tableid][pkrWinnerID], winnerName, sizeof(winnerName));
                    format(tmpString, sizeof(tmpString), "%s Won $%d", winnerName, PokerTable[tableid][pkrPot]);
                    if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][37], tmpString);
                } else if(PokerTable[tableid][pkrWinners] > 1) {
                    new splitPot = PokerTable[tableid][pkrPot]/PokerTable[tableid][pkrWinners];
                    format(tmpString, sizeof(tmpString), "%d Winners Won $%d", PokerTable[tableid][pkrWinners], splitPot);
                    if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][37], tmpString);
                }
            } else {
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][37], "Texas Holdem Poker");
            }

            // Bet
            if(PokerTable[tableid][pkrDelay] > 0 && PokerTable[tableid][pkrActive] == 3) {
                format(tmpString, sizeof(tmpString), "Round Begins in ~r~%d~w~...", PokerTable[tableid][pkrDelay]);
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][46], tmpString);
            } else if(PokerTable[tableid][pkrActive] == 2) {
                format(tmpString, sizeof(tmpString), "Waiting for players...", PokerTable[tableid][pkrPot]);
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][46], tmpString);
            } else if(PokerTable[tableid][pkrActive] == 3) {
                format(tmpString, sizeof(tmpString), "Bet: $%d", PokerTable[tableid][pkrActiveBet]);
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][46], tmpString);
            } else if(PokerTable[tableid][pkrActive] == 4) {
                format(tmpString, sizeof(tmpString), "Round Ends in ~r~%d~w~...", PokerTable[tableid][pkrDelay]);
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][46], tmpString);
            } else {
                if(playerid != -1) PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][46], "Texas Holdem Poker");
            }

            // Community Cards
            switch(PokerTable[tableid][pkrStage]) {
                case 0: // Opening
                {
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][31], "LD_CARD:cdback");
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][32], "LD_CARD:cdback");
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][33], "LD_CARD:cdback");
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][34], "LD_CARD:cdback");
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][35], "LD_CARD:cdback");
                }
                case 1: // Flop
                {
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][31], DeckTextdrw[PokerTable[tableid][pkrCCards][0]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][32], DeckTextdrw[PokerTable[tableid][pkrCCards][1]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][33], DeckTextdrw[PokerTable[tableid][pkrCCards][2]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][34], "LD_CARD:cdback");
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][35], "LD_CARD:cdback");
                }
                case 2: // Turn
                {
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][31], DeckTextdrw[PokerTable[tableid][pkrCCards][0]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][32], DeckTextdrw[PokerTable[tableid][pkrCCards][1]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][33], DeckTextdrw[PokerTable[tableid][pkrCCards][2]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][34], DeckTextdrw[PokerTable[tableid][pkrCCards][3]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][35], "LD_CARD:cdback");
                }
                case 3: // River
                {
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][31], DeckTextdrw[PokerTable[tableid][pkrCCards][0]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][32], DeckTextdrw[PokerTable[tableid][pkrCCards][1]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][33], DeckTextdrw[PokerTable[tableid][pkrCCards][2]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][34], DeckTextdrw[PokerTable[tableid][pkrCCards][3]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][35], DeckTextdrw[PokerTable[tableid][pkrCCards][4]+1]);
                }
                case 4: // Win
                {
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][31], DeckTextdrw[PokerTable[tableid][pkrCCards][0]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][32], DeckTextdrw[PokerTable[tableid][pkrCCards][1]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][33], DeckTextdrw[PokerTable[tableid][pkrCCards][2]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][34], DeckTextdrw[PokerTable[tableid][pkrCCards][3]+1]);
                    PlayerTextDrawSetString(playerid, PlayerPokerUI[playerid][35], DeckTextdrw[PokerTable[tableid][pkrCCards][4]+1]);
                }
            }
        } else {
            for(new td = 0; td < 6; td++) {
                new pid = PokerTable[tableid][pkrSlot][td];

                if(pid != -1) {
                    PlayerTextDrawSetString(pid, PlayerPokerUI[pid][0+tmp], " ");
                    PlayerTextDrawSetString(pid, PlayerPokerUI[pid][1+tmp], " ");
                    PlayerTextDrawSetString(pid, PlayerPokerUI[pid][2+tmp], " ");
                    PlayerTextDrawSetString(pid, PlayerPokerUI[pid][3+tmp], " ");
                    PlayerTextDrawSetString(pid, PlayerPokerUI[pid][4+tmp], " ");
                }
            }
        }
    }
    return 1;
}
 
Последнее редактирование модератором:
Сверху Снизу