Hello.
I have simple file with FLOAT number, with AMXX plugin I can read this (I use BLOCK_INT, because there is no BLOCK_FLOAT):
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)
}
task_Announce:
PHP Code:
public task_Announce(r_origin_x)
{
client_print(0, print_chat, "READED: %f", r_origin_x)
}
It's okay:
But, this code is correct? Because I got two warnings in compilation log:
Code:
// file.sma(46) : warning 2
13: tag mismatch
// file.sma(48) : warning 2
13: tag mismatch
46 string:
PHP Code:
fread(file, r_origin_x, BLOCK_INT)
48 string:
PHP Code:
set_task(10.0, "task_Announce", r_origin_x)
How I can fix this warnings?