Posts: 267
Threads: 80
Joined: May 2012
Reputation:
0
Can anyone reply on this pleaze, sorry for bumping didn't noticed
Posts: 267
Threads: 80
Joined: May 2012
Reputation:
0
OMG, i didn't noticed, sorry for bumping alot.
Posts: 220
Threads: 37
Joined: May 2010
Reputation:
0
You need to create the file before writing something into it. Use "dini_Create".
Posts: 267
Threads: 80
Joined: May 2012
Reputation:
0
I ain't writing something in it, I'm just changing the name of that file.
Posts: 220
Threads: 37
Joined: May 2010
Reputation:
0
dini_Set is writing the string into the file, not changing it's name. You need to delete the old file and create a new one.
Posts: 267
Threads: 80
Joined: May 2012
Reputation:
0
Why the name of that file can't be changed?
Posts: 267
Threads: 80
Joined: May 2012
Reputation:
0
My variables are these
make me one changename cmd in dialogs by deleting the file and creating it again and setting the string
dini_Create(path);
dini_Set(path, "password", inputtext);
dini_IntSet(path, "moneys", GetPlayerMoney(playerid));
dini_IntSet(path, "adminlevel", pInfo[playerid][pAdminLevel] = 0);
dini_IntSet(path, "hours", pInfo[playerid][phours] = 0);
dini_IntSet(path, "bankid", pInfo[playerid][bankid] = 0);
dini_IntSet(path, "bankregistered", pInfo[playerid][bankregistered] = 0);
dini_IntSet(path, "minutes", pInfo[playerid][pminutes] = 0);
dini_IntSet(path, "rpteacher", pInfo[playerid][rpteacher] = 0);
dini_IntSet(path, "rpmarks", pInfo[playerid][rpmarks] = 0);
dini_IntSet(path, "passport1", pInfo[playerid][passport1] = 0);
dini_IntSet(path, "passport2", pInfo[playerid][passport2] = 0);
dini_IntSet(path, "passport3", pInfo[playerid][passport3] = 0);
dini_IntSet(path, "gps", pInfo[playerid][gps] = 0);
dini_IntSet(path, "job1", pInfo[playerid][job1] = 0);
dini_IntSet(path, "job2", pInfo[playerid][job2] = 0);
dini_IntSet(path, "job3", pInfo[playerid][job3] = 0);
dini_IntSet(path, "nzt", pInfo[playerid][nzt] = 0);
dini_IntSet(path, "cig", pInfo[playerid][cig] = 0);
dini_IntSet(path, "vehiclekeys", pInfo[playerid][vehiclekeys] = 0);
dini_IntSet(path, "cellphone", pInfo[playerid][cellphone] = 0);
dini_IntSet(path, "skin", GetPlayerSkin(playerid));
Foldername: myserver