Duel System bugged
#2

oh my god this code is sooo bad...
maybe first try to change 'return 1;' to 'continue' at line 242.

Код:
new mode[6 + 1];
for(new i=0; i<8; i++)
{
    if(!IsPlayerConnected(i))
    	continue;

    if(DuelInfo[did][Mode] == 1) format(mode, sizeof mode, "1 v 1");
    if(DuelInfo[did][Mode] == 2) format(mode, sizeof mode, "2 v 2");
    if(DuelInfo[did][Mode] == 3) format(mode, sizeof mode, "3 v 3");
    if(DuelInfo[did][Mode] == 4) format(mode, sizeof mode, "4 v 4");
    
    format(string, sizeof(string), "You have been invited to a %s duel by %s. /ad to accept or /dd to deny", mode, DuelInfo[did][Host]);
    SendClientMessage(dinvitee[playerid][i], 0x0000FFFF, string);
    printf("%i", dinvitee[playerid][i]);
}
Reply


Messages In This Thread
Duel System bugged - by NealPeteros - 02.01.2018, 22:48
Re: Duel System bugged - by m4karow - 02.01.2018, 23:23
Re: Duel System bugged - by NealPeteros - 04.01.2018, 07:58
Re: Duel System bugged - by Logic_ - 04.01.2018, 08:05
Re: Duel System bugged - by NealPeteros - 04.01.2018, 09:08
Re: Duel System bugged - by m4karow - 04.01.2018, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)