Что лучше юзать? что быстрее будет работать?
Это
Или это
RE не предлагать!
Это
C++:
public StartRound()
{
new players[MAX_PLAYERS], pnum
get_players(players, pnum, "h")
for (new i; i < pnum; i ++)
arrayset(g_arrMeData[players[i]], 0, SayMeData)
}
public EventDamage(victim)
{
static attacker, hit
attacker = get_user_attacker(victim, 0, hit)
if (!is_user_connected(attacker) || attacker == victim) return
g_arrMeData[attacker][Damage] += read_data(2)
g_arrMeData[attacker][LastHit] = hit
}
C++:
public StartRound()
{
for (new i = 1; i <= MaxClients; ++ i)
arrayset(g_arrMeData[i], 0, SayMeData)
}
public EventDamage(victim)
{
static attacker, hit
attacker = get_user_attacker(victim, 0, hit)
if (victim != attacker && 1 <= attacker <= MaxClients)
{
g_arrMeData[attacker][Damage] += read_data(2)
g_arrMeData[attacker][LastHit] = hit
}
}