PHP Code:
set_task(0.1,"hud_display",_,_,_,"b")
...
public hud_display()
{
new iPlayers[32],iNum
get_players(iPlayers,iNum,"ch")
for(new i = 0; i < iNum; i++)
{
new id = iPlayers[i]
if(g_HudEnable[id]) {
set_hudmessage(200,100,0,g_x[id],g_y[id],0,3.0,0.1,0.1,0.2,4)
show_hudmessage(id,g_String[id])
}
}
}
I don't get the point of that: a 0.1 looping task is no help at all and you should update the position only for the player that actually selected a menu option. On the other hand you call the task on a 0.1 basis but the text is displayed for 3 seconds to a forced channed (4). You should change that to sync the call with the text timeout.