07.09.2011, 11:22
If I have to words in Forbidenwords ex:
Totalwords=2
Word_1=Fuck
Word_2=Shit
It only loads the first word
Why?
Totalwords=2
Word_1=Fuck
Word_2=Shit
It only loads the first word

Why?
pawn Код:
function LoadForbidenWords()
{
INI_Open("FAdmin/Logs/Forbidenwords.txt");
if(INI_ReadInt("Totalwords") == 0) return 0;
new totalwords = INI_ReadInt("Totalwords");
new string[64];
new key[20];
for(new i = 1; i < totalwords;i++)
{
format(string, sizeof(string), "Word_%i", i), INI_ReadString(key,string),strmid(ForbidenWords[i], key, 0, 20, sizeof(ForbidenWords));
printf("Words loaded: %s",ForbidenWords[i]);
}
INI_Close();
return 1;
}