Function being called over and over again
#2

I'm no expert in INI-parsers, but my guess would be that function is called everytime there is a parameter-entry in the file below the [data] block.

How many times does it run, and how many lines are usually stored in your playerfile?

Wouldn't such a function determine which parameter is read (name), along with it's value (value), so you can take appropriate action?

Try to add this in that function:
PHP код:
printf("Name = %s"name);
printf("Value = %s"value); 
And see what it prints.
Reply


Messages In This Thread
Function being called over and over again - by Amads - 26.01.2016, 20:37
Re: Function being called over and over again - by AmigaBlizzard - 26.01.2016, 20:50
Re: Function being called over and over again - by -CaRRoT - 26.01.2016, 21:03

Forum Jump:


Users browsing this thread: 1 Guest(s)