I've just added #endif at the end of code
Code:
public createINIFile()
{
if( file_exists(gXpfile) ) delete_file(gXpfile)
// code found in superhero mod
write_file(gXpfile,"*** NUMLEVELS - The total number of levels ***",0)
write_file(gXpfile,"*** LTXPLEVELS - evolution lvl config ex: 0/50 ***",1)
write_file(gXpfile,"*** LTXPGIVEN - the xp ex: 2/50", 2)
// the file
write_file(gXpfile,"NUMLEVELS 10" , 4)
write_file(gXpfile,"LTXPLEVELS 0 50 200 400 800 1600 3200 6400 12800 25600 51200", 5)
write_file(gXpfile,"LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40", 6)
#endif
}
And worked. I still need help with my mod. If someone whant's to join the xu mod please pm me.
Thx for your help guys.