26.06.2018, 10:56
I guess that the code is crashing before writing the last line, try to add a printf after the two calls.
Off topic: this is not related to your problem, but I suggest not to fopen and fclose continuously the file for each single call, I suggest you to implement the following:
PHP код:
public OnGameModeInit()
{
RenameDummy(1001, dummy, 0, 2760.900400, 1219.700200, 11.200000, 0, 0, 0.71937011, 0.69462698);
RenameDummy(1002, dummy, 0, 2760.900400, 1219.700200, 11.200000, 0, 0, 0.71937011, 0.69462698);
printf("Not crashed");
return 1;
}
PHP код:
IPL:OpenIPL(filename[]); // opens the file and returns a progressive int tagged IPL
CloseIPL(IPL:id); // closes the file opened by the specified IPL and frees that id
RenameIPL(IPL:id, code[]); // appends to the file what you need to write