02.01.2018, 23:23
oh my god this code is sooo bad...
maybe first try to change 'return 1;' to 'continue' at line 242.
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]); }