21.10.2011, 11:58
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
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");
}