Little help with strmid
#1

If I have to words in Forbidenwords ex:
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;
}
Reply


Messages In This Thread
Little help with strmid - by FireCat - 07.09.2011, 11:22
Re: Little help with strmid - by [WSF]ThA_Devil - 07.09.2011, 11:29
Re: Little help with strmid - by Vince - 07.09.2011, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)