SA-MP Forums Archive
Dini why dont create? - 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: Dini why dont create? (/showthread.php?tid=408112)



Dini why dont create? - Joco5 - 16.01.2013

Why my server dont work dini_Create function? ive included but it dont works :P please help


Re: Dini why dont create? - Rsslacker - 16.01.2013

Try checking your spelling, It might be that it happends to lot of people but they dont know it It might help.


Re: Dini why dont create? - Travis The Tiger - 16.01.2013

If you still need help, I suggest providing your coding. (Use pastebin)


Re: Dini why dont create? - Joco5 - 16.01.2013

I have 2gms, on one gm work, on secon dont :P
Quote:

#define FUEL_STATION_FILE_PATH "NMW/Benziski/Benziski.ini"

SaveFuelStation(stationid)
{
new filestring[512];
if(!dini_Exists(FUEL_STATION_FILE_PATH)) dini_Create(FUEL_STATION_FILE_PATH);
format(filestring, sizeof(filestring), "%d,%.3f,%.3f,%.3f,%f\n",
FuelStationCreated[stationid],
FuelStationPos[stationid][0],
FuelStationPos[stationid][1],
FuelStationPos[stationid][2],
FuelStationTank[stationid]
);
new stationids[5];
valstr(stationids,stationid);
dini_Set(FUEL_STATION_FILE_PATH,stationids,filestr ing);
}




Re: Dini why dont create? - I3Psychedelic - 17.01.2013

Make sure you have the path's folder created.


Re: Dini why dont create? - CodyCummings - 17.01.2013

Just like the above post said, check if the path is already created, if not, create it. If that still doesn't work and you're running it on Linux (most hosts run a Linux distro on their box) then it might be due to your server not having proper permissions over the path. Also keep in mind Dini_Create attempts to create the file in the scriptfiles directory.


Re: Dini why dont create? - Don21x - 17.01.2013

I don't know what to tell you for this one. When i read the thread i figure it was gonna be showing you how to create and store account files. Anyhow can you tell me how to create a post very noob question but i need to get some questions answered and when i check new post i get new post but i cant create one please help. Message me im new to the forum but im a scripter