30.04.2017, 18:10
I could be completely wrong as I'm unfamiliar with fwrite, but I read up on the wiki. It appears you're converting a string to an integer and passing it into fwrite which wants a string that it can convert to an integer. Perhaps pass the string, let it be converted to an integer, then add + 1 to that value.