Found the problem.. it was setting two tasks to display the same message due to a double call in a procedure. Anyways, here's teh problem:
Code:
public UpdateFocus(id)
{
if(is_user_alive(id))
{
PlayerMaxFocus[id] = PlayerLevel[id] + 9//check required for admin set exp command
new Message[128] = ""
format(Message, 127, "FOCUS: %i/%i", PlayerFocus[id], PlayerMaxFocus[id])
set_hudmessage(255, 255, 255, 0.05, 0.75, 0, 0.02, 3.0, 0.01, 0.1, 2)
show_hudmessage(id, Message)
RefreshExperience(id)
}
new ident[1]
ident[0] = id
set_task(1.0, "RefreshFocus", 142+id, ident, 1)
//lose 1 focus if focusing
if (PlayerFocusing[id])
{
PlayerFocus[id] -= 3
if(PlayerFocus[id] == 0)
ToggleFocusOff(id)
}
}
//for timed function only
public RefreshFocus(ident[],TaskID)
{
new id = ident[0]
UpdateFocus(id) //this little bitch right here had my server down for 2 days!!!
if((is_user_alive(id)) && (PlayerAlliance[id] == 3)) //alive exiles only
{
new Health = get_user_health(id)
if(Health < PlayerMaxHealth[id])
{
Health += 1
set_user_health(id, Health)
if(Health > PlayerMaxHealth[id])
set_user_health(id, PlayerMaxHealth[id])
}
if(get_user_armor(id) > PlayerMaxArmor[id])
set_user_armor(id, PlayerMaxArmor[id])
}
UpdateFocus(id)
}
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.
-Friedrich Nietzsche