SA-MP Forums Archive
I have problems with Dini - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I have problems with Dini (/showthread.php?tid=67406)



I have problems with Dini - NickName3 - 01.03.2009

I builded a command,
and when the command use "dini_Int..." or "dini_Get..." the FilterScript crash (not working any more)
that the command:
Код:
if(strcmp(cmd2, "Info", true)==0){
tmp=strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid,white,"USAGE:\"/Clan Info [ClanName]\"");
tmp=strreplace("[","",tmp);
tmp=strreplace("]","",tmp);
format(cfile,256,"RL/Clans/%s.txt",tmp);
if(!dini_Exists(cfile)) return SendClientMessage(playerid,white,"!ма чййн чмап бщн жд ");
format(string,256,"~~~ [%s]:ойгт тм дчмап ~~~",tmp);
SendClientMessage(playerid,lblue,string);
format(string,256,"[%s|%s]:ъашйк ежоп фъйзд ",dini_Get(cfile,"OpenTime"),dini_Get(cfile,"OpenDate"));
SendClientMessage(playerid,lgreen,string);
format(string,256,"[%d]:бтмйн ",dini_Int(cfile,"Leaders"));
SendClientMessage(playerid,lgreen,string);
format(string,256,"[%d]:щзчрйн ",dini_Int(cfile,"Players"));
SendClientMessage(playerid,lgreen,string);
SendClientMessage(playerid,lblue,":дегтъ дчмап ");
if(dini_Int(cfile,"MSG")==0){
SendClientMessage(playerid,lgreen," айп дегтд ");
} else {
format(string,256," %s ",dini_Get(cfile,"MSG"));
SendClientMessage(playerid,lgreen,string);
}
SendClientMessage(playerid,lblue,"~~~~~~~~~~~~~~~~~~~~~");
return 1;
}
How can I fix it?
Thanks for helpers !