i'm working with an sql version of my plugin, so i want hudmess to display some results from sql
an example:
PHP Code:
new g_result[4]
public get_some_res_from_sql(id)
{
//there's script that gets results
set_task(2.0, "somefunc, id, _, _, "b")
}
public somefunc(id) {
set_hudmessage(210, 105, 30, 0.01, 0.76, 0, _, 1.9,_, 0.1, -1 )
show_hudmessage(id, "Your result: %s", g_result)
}
i can't loop get_some_res_from_sql(id) cause it will get the results every two seconds, causing too many laggs :O
edit:
ohh i was typing too slow, 3 answers...