SetTimerEx or SetTimer+foreach ?
#1

hey ya!

Ok i have a question, a performance question.


Its better use

(all codes here its just examples)

pawn Код:
public OnPlayerConnect(playerid)
{
    playertimer[playerid] = SetTimerEx("GiveCookie",500,true,"i",playerid);
    return 1;
}

public GiveCookie(playerid)
{
    CookieStatus[playerid][cookieamount]++;
}
Or

pawn Код:
public OnGameModeInit()
{
    SetTimerEx("GiveCookie",500,true);
    return 1;
}

public GiveCookie()
{
    foreach(new i : Player) {
        CookieStatus[i][cookieamount]++;
    }
}

?
Reply


Messages In This Thread
SetTimerEx or SetTimer+foreach ? - by iJumbo - 10.04.2013, 23:44
Re: SetTimerEx or SetTimer+foreach ? - by CaRa - 11.04.2013, 00:01
Re: SetTimerEx or SetTimer+foreach ? - by iJumbo - 11.04.2013, 00:03
Re: SetTimerEx or SetTimer+foreach ? - by CaRa - 11.04.2013, 00:05
Re: SetTimerEx or SetTimer+foreach ? - by thefatshizms - 11.04.2013, 00:08
Re: SetTimerEx or SetTimer+foreach ? - by iJumbo - 11.04.2013, 00:08
Re: SetTimerEx or SetTimer+foreach ? - by Pottus - 11.04.2013, 00:12
Re: SetTimerEx or SetTimer+foreach ? - by iJumbo - 11.04.2013, 00:28
Re: SetTimerEx or SetTimer+foreach ? - by MP2 - 11.04.2013, 00:30
Re: SetTimerEx or SetTimer+foreach ? - by Pottus - 11.04.2013, 00:51

Forum Jump:


Users browsing this thread: 2 Guest(s)