People In Mode count fails....
#12

You could cut code from OnPlayerDeath (since it's useless) and paste it OnDialogResponse.

Like so:

pawn Code:
if(dialogid == ModeSelect)
{
    if(response)
    {
        if(listitem == 0)
        {
            if(IsInFFA[playerid] == 1)
            {
                PPLinFFA --;
            }
            IsInTDM[playerid] = 1;
            IsInFFA[playerid] = 0;
            IsInSTUNT[playerid] = 0;//ignore this
            SendClientMessage(playerid,COLOR_ORANGE,"**TDM Chosen**");
            SetPlayerHealth(playerid,0.0);
        }
        if(listitem == 1)
        {
            if(IsInTDM[playerid] == 1)
            {
                PPLinTDM --;
            }
            IsInTDM[playerid] = 0;
            IsInFFA[playerid] = 1;
            IsInSTUNT[playerid] = 0;//ignore this
            SendClientMessage(playerid,COLOR_ORANGE,"**FFA Chosen**");
            SetPlayerHealth(playerid,0.0);
        }
    }
    return 1;
}
Reply


Messages In This Thread
People In Mode count fails.... - by [MNC]Azz - 24.08.2011, 13:11
Re: People In Mode count fails.... - by WoodPecker - 24.08.2011, 13:13
Re: People In Mode count fails.... - by [MNC]Azz - 24.08.2011, 13:16
Re: People In Mode count fails.... - by iMonk3y - 24.08.2011, 13:22
Re: People In Mode count fails.... - by [MNC]Azz - 24.08.2011, 13:25
Re: People In Mode count fails.... - by iMonk3y - 24.08.2011, 13:30
Re: People In Mode count fails.... - by [MNC]Azz - 24.08.2011, 13:35
Re: People In Mode count fails.... - by iMonk3y - 24.08.2011, 13:43
Re: People In Mode count fails.... - by [MNC]Azz - 24.08.2011, 13:48
Re: People In Mode count fails.... - by iMonk3y - 24.08.2011, 13:50
Re: People In Mode count fails.... - by [MNC]Azz - 24.08.2011, 13:53
Re: People In Mode count fails.... - by iMonk3y - 24.08.2011, 14:00
Re: People In Mode count fails.... - by [MNC]Azz - 24.08.2011, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)