Rename DFF name on IPL map
#2

I guess that the code is crashing before writing the last line, try to add a printf after the two calls.

PHP код:
public OnGameModeInit()
{
    
RenameDummy(1001dummy02760.9004001219.70020011.200000000.719370110.69462698);
    
RenameDummy(1002dummy02760.9004001219.70020011.200000000.719370110.69462698);
    
printf("Not crashed");
    return 
1;

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 код:
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:idcode[]); // appends to the file what you need to write 
Reply


Messages In This Thread
Rename DFF name on IPL map - by cellps - 26.06.2018, 04:15
Re: Rename DFF name on IPL map - by Sasino97 - 26.06.2018, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)