Page 2 of 2

Re: Kodo dalis, nesuprantu, padėkit

Posted: 2012 Aug 13 14:58
by Pukuotukas951
Nesupratau kurioje vietoje įdėti. Prie Action2(player[1]) pridėjau ir metė loose indentation... bei ta pati klaida, taigi padariau taip:

Code: Select all

public Action() {    new players[32], num       get_players(players, num, "ae", "CT")       for(new i; i < num; i++)        Action2(players[i])        kartojam(players[i])  } public kartojam(id){    set_task(3.0, "Action2", id)} Action2(id) {    message_begin(MSG_ONE_UNRELIABLE, g_iMsgScreenFade, _, id)    write_short(1 << 15)    write_short(1 << 10)    write_short(1 << 12)    write_byte(255)    write_byte(255)    write_byte(255)    write_byte(255)    message_end()}

Re: Kodo dalis, nesuprantu, padėkit

Posted: 2012 Aug 13 15:15
by psychical

Code: Select all

public Action() {    new players[32], num, tid;    get_players(players, num, "ae", "CT");       for(new i; i < num; i++)    {        tid = players[i];         Action2(tid);        set_task(3.0, "Action2", tid);    }}