11.07.2013, 12:05
which of theese is less laggy?
pawn Код:
new timerid[MAX_PLAYERS];
forward function[playerid];
public OnPlayerConnect(playerid)
{
timerid[playerid]=SetTimerEx("Function",150,1,"d",playerid);
return 1;
}
public Function(playerid)
{
//Something here
return 1;
}
pawn Код:
new timerid;
forward Function();
public OnGameModeInit()
{
timerid=SetTimer("Function",150,1);
return 1;
}
public Function()
{
for (new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
//Something here
}
return 1;
}