SA-MP Forums Archive
Why does my pawn crash ? (Y_INI) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why does my pawn crash ? (Y_INI) (/showthread.php?tid=421506)



Why does my pawn crash ? (Y_INI) - 101 - 09.03.2013

pawn Код:
new file[40];
format(file, sizeof(file), BIZ_FILE, BizID[playerid]);
new INI:bFilee = INI_Open(file);
INI_WriteString(bFilee, "bName", BizInfo[BizID[playerid]][bName]);
INI_Close(bFilee);
The compiler just crashes.


Re: Why does my pawn crash ? (Y_INI) - LarzI - 09.03.2013

Show us BIZ_FILE, I guess (?) I don't see any problems right now.


Re: Why does my pawn crash ? (Y_INI) - 101 - 09.03.2013

#define BIZ_FILE "NVCNR/BIZOVI/%d.ini"

Its straight from NVCNR script.


Re: Why does my pawn crash ? (Y_INI) - LarzI - 09.03.2013

Try double forwardslash instead:

pawn Код:
#define BIZ_FILE "NVCNR\\BIZOVI\\%d.ini"



Re: Why does my pawn crash ? (Y_INI) - 101 - 09.03.2013

Nope, same.