I have a problem when the plugin needs to load times from .ini file. After something, .ini file gets updated, and i see that when i open it...but in-game its not updated, until i change the map...im trying to call that load immediately, but it remains the same...im not that good coder so i tryed 20 ways, this is the last one im using:
PHP Code:
public update_player()
{
if (file_exists(g_SpawnFile))
{
new Data[128], len, line = 0
new p_origin[3][8]
new broj_ent[4]
while((line = read_file(g_SpawnFile , line , Data , 127 , len) ) != 0 )
{
parse(Data, p_origin[0],7, p_origin[1],7, p_origin[2],7, nick_igrac, 31, broj_ent, 3, VREME_1, 14)
official_time[cp_count] = str_to_float( VREME_1 )
}
}
client_print( 0, print_chat, "ocitano")
return PLUGIN_CONTINUE
}
isnt just parse + using it, enought to be loaded from .ini ?