07.04.2013, 19:55
Код:
stock CreateNewHouse(h,Float:x,Float:y,Float:z) { new hf[64]; format(hf,sizeof(hf),"Houses/Casa%d.txt",h); if (fexist(hf)) {//if the file exists open it new INI:file = INI_Open(hf); // [...] // your code here, use INI_WriteInt, INI_WriteString, INI_WriteFloat, INI_WriteHex, INI_WriteBool and etc. // u write everything? ok, close it. INI_Close (file); } // etc. etc. etc.
Change
Код:
if (fexist(hf)) {//if the file exists open it new INI:file = INI_Open(hf);
Код:
new INI:file = INI_Open(hf); if (file != INI_NO_FILE) { // [...] }