30.01.2010, 14:26
This is the correct code:
What you did was assigning ClanInfo[clanadi] to dini_Get(file,"LoncaAdi") instead of assigning the return value of dini_Get to ClanInfo[clanadi].
Why do you format string btw in the end when you don`t use it afterwards somehow?
Код:
dcmd_loncakur(playerid,params[]) {
new file[256],string[256];
ServerInfo[ClanID]++;
if (udb_CreateClan(ServerInfo[ClanID]))
{
format(file,sizeof(file),"klanlar/%d.sav",ServerInfo[ClanID]);
dini_Set(file,"LoncaAdi",params);
dini_IntSet(file,"ToplamOyuncu",1);
dini_IntSet(file,"Kaybeden",0);
dini_IntSet(file,"Kazanan",0);
}
format(string,256,"Tebrikler, %s loncasi kuruldu ! /loncayal komutu ile oyunculara davet gцnderebilirsiniz",params); // Cong. Messagea
ClanInfo[clanadi] = dini_Get(file,"LoncaAdi");// It doesnt work
return 1;
}
Why do you format string btw in the end when you don`t use it afterwards somehow?

