2 solutions, in both you need to tag it as Float in the task callback because task index can only be an integer, else you would have to pass it as task parameter.
So :
Either you declare it as integer :
PHP Code:
new file = fopen(map_file, "r")
if (file) {
new r_origin_x
fread(file, r_origin_x, BLOCK_INT)
set_task(10.0, "task_Announce", r_origin_x)
fclose(file)
}
public task_Announce(r_origin_x)
{
client_print(0, print_chat, "READED: %f", Float:r_origin_x)
}
Either you cast it :
PHP Code:
new file = fopen(map_file, "r")
if (file) {
new Float:r_origin_x
fread(file, _:r_origin_x, BLOCK_INT)
set_task(10.0, "task_Announce", _:r_origin_x)
fclose(file)
}
public task_Announce(r_origin_x)
{
client_print(0, print_chat, "READED: %f", Float:r_origin_x)
}
__________________