Very strange dialog problem
#9

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
Does it allow up to 4v4 duels? What if it is a 1v1? The last three indexes will be NONE and access invalid index.
pawn Код:
for(new i = 0; i < 4; i++)
{
    if (DuelInfo[playerid][...][i] != NONE)
    {
        DuelerID[DuelInfo[playerid][...][i]] = NONE;
        DuelInfo[playerid][...][i] = NONE;
        DuelInfo[playerid][Status...][i] = 0;
    }
}
which ... is "Team" and "Enemy".

Resetting the duel variables and then their participants variables separated is better because I believe you call `ResetDuelInfo` function for all participants and if it allows 4v4, then it will reset the teams many times instead of only one.
Yeah as I said I didn't make this system, so I might just take it out... But still I need it.
Reply


Messages In This Thread
Very strange dialog problem - by solstice_ - 28.10.2018, 01:45
Re: Very strange dialog problem - by Calisthenics - 28.10.2018, 07:08
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 13:34
Re: Very strange dialog problem - by v1k1nG - 28.10.2018, 13:55
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 13:57
Re: Very strange dialog problem - by v1k1nG - 28.10.2018, 14:01
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 14:03
Re: Very strange dialog problem - by Calisthenics - 28.10.2018, 14:19
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 14:21
Re: Very strange dialog problem - by d3Pedro - 29.10.2018, 04:13

Forum Jump:


Users browsing this thread: 2 Guest(s)