I want use second (2) solution, it's works for one FLOAT number, but this is does not work with this code:
PHP Code:
new file = fopen(map_file, "r")
if (file) {
new Float:r_origin[3]
fread(file, _:r_origin[0], BLOCK_INT)
fread(file, _:r_origin[1], BLOCK_INT)
fread(file, _:r_origin[2], BLOCK_INT)
set_task(10.0, "task_Announce", _:r_origin[0], _:r_origin[1], _:r_origin[2])
fclose(file)
}
PHP Code:
public task_Announce(r_origin_x, r_origin_y, r_origin_z)
{
client_print(0, print_chat, "X: %f Y: %f Z: %f", Float:r_origin_x, Float:r_origin_y, Float:r_origin_z)
}
This code crash my CS

. What's wrong?