Dini why dont create?
#1

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

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

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

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);
}

Reply
#5

Make sure you have the path's folder created.
Reply
#6

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.
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)