SA-MP Forums Archive
DuelSystem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DuelSystem (/showthread.php?tid=291741)



DuelSystem - spd_sahil - 21.10.2011

I use this and i dont know where the problem is but dueler1 is not being put into team 1
this is my program extract

pawn Code:
case 5:
            {
                if(strlen(inputtext)>0)
                {
                    dueler1 = strval(inputtext);
                    team[dueler1] = 1;
                    ShowPlayerDialog(playerid,6,1,"Enter Player 2's Id","Enter the Second Player in the Duel","Yup him!","Cancel");
                }
            }
            case 6:
            {
                if(strlen(inputtext)>0)
                {
                    dueler2 = strval(inputtext);
                    team[dueler2] = 2;
                    for(new i;i<MAX_PLAYERS;i++)
                    {
                        if(IsPlayerConnected(i))
                        {
                            if(i!=dueler1 && i!=dueler2)
                            {
                                team[i] = 3;
                            }
                        }
                    }
                }
                ShowPlayerDialog(playerid,7,1,"Enter Number Of Rounds","Total Number Of Rounds","These Many","Cancel");
            }



Re: DuelSystem - spd_sahil - 21.10.2011

bump