need help with dini -
Lukas5852 - 04.04.2011
hi,so my dini include not working, i dont know whats wrong,yesterday it worked,today I included more commands in my first gm and now it stop working.i dont know whats wrong it just didn t save information. im new in pawno,i dont know what need do,please help!
Re: need help with dini -
Sinner - 04.04.2011
Post your code so people can have a look at what might be causing the problem.
Re: need help with dini -
aircombat - 04.04.2011
well can you show ur script?
Re: need help with dini -
Lukas5852 - 04.04.2011
#include <a_samp>
#include <dini>
#include <dudb>
#include <streamer>
new bool:Logged[MAX_PLAYERS];
new bool:Administratorius[MAX_PLAYERS];
new bool:Vipas[MAX_PLAYERS];
//news============================================== ============================
new PaskutinisZaidejas[MAX_VEHICLES][24];
new engine,lights,alarm,doors,bonnet,boot,objective;
//kame============================================== ============================
new Float
,Float:y,Float:z;
new Float
x2,Float:yy2,Float:az;
new Float
3,Float:y3;
new Float
4,Float:y4;
new Float
5,Float:y5;
new Float
6,Float:y6;
new Float
i,Float:yi;
new Float
i2,Float:yi2;
//spalvos=========================================== ============================
#define GREY 0xB4B5B7FF
#define ORANGE 0xFF8C00AA
#define GREEN 0x33AA33AA
#define YELLOW 0xFFFF00AA
#define HOMER 0xFF0000AA
#define BLUE 0x33CCFFAA
#define ABLUE 0x2641FEAA
#define SYNTAX 0xAA3333AA
#define OTHER 0xFF6347AA
#define WHITE 0xFFFFFFAA
#define RED 0xAA3333AA
#define PURPLE 0xC2A2DAAA
#define VIOLET 0x9400D3AA
#define COLOR_LIGHTGREEN 0x9ACD32AA
//================================================== ============================
#define SLOT 1
//carsyst=========================================== ============================
#define VEHICLE_PARAMS_UNSET -1 //This sets if your using the params
#define VEHICLE_PARAMS_OFF 0 //This will set your params OFF
#define VEHICLE_PARAMS_ON 1 //This will set your params ON
//================================================== ============================
main()
{
print("\n----------------------------------");
print(" Gamemode sukure Lukas");
print(" Gamemodas kurtas nuo 0");
print("----------------------------------\n");
}
public OnGameModeInit()
{
//masinos=========================================== ============================
AddStaticVehicle(462,-1983.5776,171.3848,27.2872,89.6769,25,11
; // 1
AddStaticVehicle(420,-2171.4272,293.1371,34.8574,0.0068,6,1); // taxi1
// Don't use these lines if it's a filterscript=================================
SetGameModeText("pradinukas
");
AddPlayerClass(0, -1985.797973, 137.670104, 27.687500, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, -1985.797973, 137.670104, 27.687500);
SetPlayerCameraPos(playerid, -1985.797973, 137.670104, 27.687500);
SetPlayerCameraLookAt(playerid, -1985.797973, 137.670104, 27.687500);
return 1;
}
public OnPlayerConnect(playerid)
{
Logged[playerid] = false;
Administratorius[playerid] = false;
Vipas[playerid] = false;
//----------------------------------------
new file[128], vardas[128];
GetPlayerName(playerid, vardas, 12
;
format(file,128,"Users/%s.ini",vardas);
if(!dini_Exists(file))
{
ShowPlayerDialog(playerid,9876,DIALOG_STYLE_INPUT, "{F81414}Registracija","{FFFFFF}Jei norite юaisti, pirmiausia uюsiregistruokite.\nБveskite slaptaюodб:","Registruotis","Iрeiti");
}
else if(dini_Exists(file))
{
ShowPlayerDialog(playerid,9877,DIALOG_STYLE_INPUT, "{F81414}Prisijungimas","{FFFFFF}Norлdami tжsti юaidimа, prisijunkite.\nБveskite slaptaюodб:","Prisijungti","Iрeiti");
}
//---------------------------------
new gname[MAX_PLAYER_NAME],msg[128];
GetPlayerName(playerid,gname,sizeof(gname));
format(msg,sizeof(msg),"* %s prisijunge Prie serverio.",gname);
SendClientMessageToAll(BLUE,msg);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new gname[MAX_PLAYER_NAME],msg[128];
GetPlayerName(playerid,gname,sizeof(gname));
format(msg,sizeof(msg),"* %s Atsijunge",gname);
SendClientMessageToAll(BLUE,msg);
//-------------------------------
Logged[playerid] = false;
Administratorius[playerid] = false;
Vipas[playerid] = false;
new name[MAX_PLAYER_NAME],file[128];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"Users/%s.ini",name);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(playerid,"Nuzudytas", 5000,2);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//visu komandos========================================== =======================
if (strcmp("/pagalba", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, ORANGE," ------PAGALBA-----");
SendClientMessage(playerid, GREEN," /adminas - Informacija apie admin");
SendClientMessage(playerid, GREEN," /vipas - informacija apie vip");
return 1;
}
if(strcmp(cmdtext,"/mv",true)==0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0xCC0000FF, "Turite buti masinos viduje!");
}
else
{
ShowPlayerDialog(playerid, 474, DIALOG_STYLE_LIST, "Masinos kontrole", "Kapotas ( Atidaryti/Uzdaryti )\nBagazine ( Atidaryti/Uzdaryti )", "Pasirinkiti", "Atsaukti");
}
return 1;
}
if (strcmp("/vipas", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,275,DIALOG_STYLE_MSGBOX, "Vip info","Vipa gali gauti jei: \nBusi aktyvus \nNedarysi nesamoniu \nPadesi adminams \nVipa gauti labai sunku. \nSimboline vip kaina:5LT \nDel vip kreiptis skype:buratis99","Gerai","Uюdaryti");
return 1;
}
if (strcmp("/adminas", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,276,DIALOG_STYLE_MSGBOX, "Admin info","Adminas visuomet privalo tau padeti \n \nJei matai piknaudziaujanti admina, \nPranesk skype:buratis99 \nOnline adminus pamatysi parases/online. \nSimboline admin kaina:10LT \nDel admin kreiptis skype:buratis99","Gerai","Uюdaryti");
return 1;
}
//vipu komandos========================================== =======================
if (Vipas[playerid])
{
if (strcmp("/vkomandos", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,390,DIALOG_STYLE_MSGBOX, "Vip Komandos","/v \n/vkick \n/vkame \n/vskristi \n/vginklai","Gerai","Uюdaryti");
return 1;
}
if(strcmp(cmdtext, "/vskristi", true)==0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
SendClientMessage(playerid,0xEA0000FF,"* Gavote Jet-Pack");
return 1;
}
if( strcmp(cmdtext, "/vkame", true) == 0)
{
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid, az);
xi = x + (5 * floatsin(-az, degrees));
yi = y + (5 * floatcos(-az, degrees));
xx2 = x + (10 * floatsin(-az, degrees));
yy2 = y + (10 * floatcos(-az, degrees));
x3 = x + (15 * floatsin(-az, degrees));
y3 = y + (15 * floatcos(-az, degrees));
x4 = x + (20 * floatsin(-az, degrees));
y4 = y + (20 * floatcos(-az, degrees));
x5 = x + (25 * floatsin(-az, degrees));
y5 = y + (25 * floatcos(-az, degrees));
x6 = x + (30 * floatsin(-az, degrees));
y6 = y + (30 * floatcos(-az, degrees));
CreateExplosion(xi2,yi2,z-1,11,0);
CreateExplosion(xi,yi,z-1,11,2.5);
CreateExplosion(xx2,yy2,z-1,11,2.5);
CreateExplosion(x3,y3,z-1,11,2.5);
CreateExplosion(x4,y4,z-1,11,2.5);
CreateExplosion(x5,y5,z-1,11,2.5);
CreateExplosion(x6,y6,z-1,11,10);
return 1;
}
if(strcmp(cmdtext, "/vginklai", true)==0)
{
GivePlayerWeapon(playerid,32,100000);
GivePlayerWeapon(playerid,27,100000);
GivePlayerWeapon(playerid,31,100000);
SendClientMessage(playerid,VIOLET,"* Gavai siektiek vipo ginklu");
return 1;
}
// /v(gali sukelt buga)
if(!strcmp(cmdtext, "/v ", true,3)){
if(cmdtext[2]==0){SendClientMessage(playerid,0x00FF00AA, "* Naudojimas: /v [tekstas]"); return 1;}
new zin[256],vardas[MAX_PLAYER_NAME];
GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
format(zin,sizeof(zin),"*Vipas %s : %s",vardas,cmdtext[3]);
SendClientMessageToAll(HOMER,zin);
return 1;
}
if(!strcmp(cmdtext, "/v", true)){
SendClientMessage(playerid, BLUE, "* Naudojimas: /v [tekstas]");
return 1;
}
}
//adminu komandos
if (Administratorius[playerid])
{
if (strcmp("/akomandos", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,389,DIALOG_STYLE_MSGBOX, "Admin Komandos","/ban \n/kick \n/kame \n/skristi \n/s \n/gydyti","Gerai","Uюdaryti");
return 1;
}
if(strcmp(cmdtext, "/skristi", true)==0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
SendClientMessage(playerid,0xEA0000FF,"* Gavote Jet-Pack");
return 1;
}
if(strcmp(cmdtext, "/mac", true)==0)
{
GivePlayerWeapon(playerid,32,100000);
GivePlayerWeapon(playerid,27,100000);
GivePlayerWeapon(playerid,31,100000);
SendClientMessage(playerid,VIOLET,"* Gavai siektiek admino ginklu");
return 1;
}
if( strcmp(cmdtext, "/kame", true) == 0)
{
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid, az);
xi = x + (5 * floatsin(-az, degrees));
yi = y + (5 * floatcos(-az, degrees));
xx2 = x + (10 * floatsin(-az, degrees));
yy2 = y + (10 * floatcos(-az, degrees));
x3 = x + (15 * floatsin(-az, degrees));
y3 = y + (15 * floatcos(-az, degrees));
x4 = x + (20 * floatsin(-az, degrees));
y4 = y + (20 * floatcos(-az, degrees));
x5 = x + (25 * floatsin(-az, degrees));
y5 = y + (25 * floatcos(-az, degrees));
x6 = x + (30 * floatsin(-az, degrees));
y6 = y + (30 * floatcos(-az, degrees));
CreateExplosion(xi2,yi2,z-1,11,0);
CreateExplosion(xi,yi,z-1,11,2.5);
CreateExplosion(xx2,yy2,z-1,11,2.5);
CreateExplosion(x3,y3,z-1,11,2.5);
CreateExplosion(x4,y4,z-1,11,2.5);
CreateExplosion(x5,y5,z-1,11,2.5);
CreateExplosion(x6,y6,z-1,11,10);
return 1;
}
if(strcmp(cmdtext, "/gydyti", true)==0)
{
if(IsPlayerInAnyVehicle(playerid)) RepairVehicle(GetPlayerVehicleID(playerid));
SetPlayerHealth(playerid,200);
SetPlayerArmour(playerid,200);
SendClientMessage(playerid,BLUE,"* Gyvybiu kodas");
return 1;
}
// /s(gali but bugas
if(!strcmp(cmdtext, "/s ", true,3)){
if(cmdtext[2]==0){SendClientMessage(playerid,0x00FF00AA, "* Naudojimas: /s [tekstas]"); return 1;}
new zin[256],vardas[MAX_PLAYER_NAME];
GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
format(zin,sizeof(zin),"*Administratorius %s : %s",vardas,cmdtext[3]);
SendClientMessageToAll(COLOR_LIGHTGREEN,zin);
return 1;
}
if(!strcmp(cmdtext, "/s", true)){
SendClientMessage(playerid, BLUE, "* Naudojimas: /s [tekstas]");
return 1;
}
}
//================================================== ============================
return SendClientMessage(playerid,RED," Komandos nera arba ja parasete neteisingai naudokite /pagalba");
}
//================================================== ============================
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
//paskutinis sedejo?=========================================== =================
if(newstate == PLAYER_STATE_DRIVER)//Nustato naujа юaidлjo vietа, рiuo atveju - vairuotojas
{
new String[128];
format(String,128,"Paskutinis siame transporte sedejo: {006600}%s", PaskutinisZaidejas[GetPlayerVehicleID(playerid)]);//Iрgauname maрinos ID, kurioje sлdлjo kaюkoks юmogus
SendClientMessage(playerid,WHITE, String);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);//Iрgauname юaidлjo pilnа Vardа_Pavardж
format(PaskutinisZaidejas[GetPlayerVehicleID(playerid)],24,"%s",name);//Nusiunиiame юaidлjo nick'а б pradinж юinutж.
}
//helmet============================================ ============================
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
if(IsABike(GetPlayerVehicleID(playerid)))
{
switch(GetPlayerSkin(playerid))
{
#define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, SLOT, 18645, 2, (%0), (%1), (%2), (%3), (%4), (%5));
case 0, 65, 74, 149, 208, 273: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
}
}
}
else
{
RemovePlayerAttachedObject(playerid, SLOT);
}
return 1;
}
stock IsABike(vehicleid) //Made by me
{
new result;
new model = GetVehicleModel(vehicleid);
switch(model)
{
case 509, 481, 510, 462, 448, 581, 522, 461, 521, 523, 463, 586, 468, 471: result = model;
default: result = 0;
}
return result;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new veh = GetPlayerVehicleID(playerid);
if(dialogid == 11)
{
if(!response) return SendClientMessage(playerid, 0xCC0000FF, "Jus atsaukete operacija.");
switch(listitem)
{
case 0:
{
if(GetPVarInt(playerid, "Kapotas") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,V EHICLE_PARAMS_ON,boot,objective);
SetPVarInt(playerid, "Kapotas", 1);
}
else if(GetPVarInt(playerid, "Kapotas") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,V EHICLE_PARAMS_OFF,boot,objective);
SetPVarInt(playerid, "Kapotas", 0);
}
}
case 1:
{
if(GetPVarInt(playerid, "Bagazine") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,b onnet,VEHICLE_PARAMS_ON,objective);
SetPVarInt(playerid, "Bagazine", 1);
}
else if(GetPVarInt(playerid, "Bagazine") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,b onnet,VEHICLE_PARAMS_OFF,objective);
SetPVarInt(playerid, "Bagazine", 0);
return 1;
}
}
}
return 1;
}
if(dialogid == 121)
{
if(response)
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,121,DIALOG_STYLE_INPUT," {F81414}Registracija","{FFFFFF}Jыs neбvedлte slaptaюodюio!\nБveskite slaptaюodб:","Registruotis","Iрeiti");
}
else
{
new file[128], vardas[128];
GetPlayerName(playerid,vardas,12
;
format(file,128,"Users/%s.ini",vardas);
dini_Create(file);
dini_IntSet(file,"Slaptazodis",udb_hash(inputtext) );
Logged[playerid] = true;
SendClientMessage(playerid,0xFFFFFFFF,"Registracij a sekminga, prie serverio jus prijungtas automatiskai.");
}
}
else if(!response)
{
Kick(playerid);
}
return 1;
}
if(dialogid == 122)
{
if(response)
{
new file[128], vardas[128], pass[256], administratorius[256], vipas[256];
new Money[256], Score[256];
GetPlayerName(playerid, vardas, 12
;
format(file,128,"Users/%s.ini",vardas);
pass = dini_Get(file,"Slaptazodis");
Money = dini_Get(file,"Pinigai");
Score = dini_Get(file,"Xp");
administratorius = dini_Get(file,"Administratorius");
vipas = dini_Get(file,"Vipas");
if(strval(administratorius) == 1)
{
SendClientMessage(playerid,BLUE,"Sveikas administratoriau, geros dienos юaidime. {F81414}Nepamirsk /adminas!");
Administratorius[playerid] = true;
}
if(strval(vipas) == 1)
{
SendClientMessage(playerid,BLUE,"Sveikas Vip nari, geros dienos юaidime. {F81414}Nepamirsk /vipas!");
Vipas[playerid] = true;
}
if(udb_hash(inputtext) != strval(pass))
{
ShowPlayerDialog(playerid,122,DIALOG_STYLE_INPUT," {F81414}Prisijungimas","{FFFFFF}Slaptaюodis kurб бvedлte neteisingas!\nБveskite slaptaюodб:","Prisijungti","Iрeiti");
}
else
{
GivePlayerMoney(playerid,dini_Int(file,"Pinigai")) ;
SetPlayerScore(playerid, dini_Int(file, "Score"));
Logged[playerid] = true;
SendClientMessage(playerid,0xFFFFFFFF,"Sveikiname sлkmingai prisijungus!");
}
}
else if(!response)
{
Kick(playerid);
}
return 1;
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Re: need help with dini -
Hal - 04.04.2011
Are there any warnings or errors? Are you sure that all the folders exist...
While you are having troubles with dini, why don't you just use a better file system like djson or fini etc.