SQLite wont load table?
#5

I just realized that my /factions command suddenly doesnt work, when I posted this, if you did /createfac, it would show the faction Name and ID, now it doesn't even do it if you create a new faction? (Note: player's faction on spawn is 0, therefore there is a faction called "None" set for ID 0 and it bypasses that.

pawn Код:
CMD:factions(playerid, params[])
    {
    SCM(pid, COLYELLOW, "Factions");
    new index = 0, string[100];
    for(new i = 0; i < 10; i++)
        {
        if(FactionInfo[i][fID] == 0)
            {
            return 1;
            }
        else
            {
            format(string, sizeof(string), "ID %d: %s", FactionInfo[i][fID], FactionInfo[i][fName]);
            SCM(pid, COLGREY, string);
            index++;
            return 1;
            }
        }
    return 1;
    }
Reply


Messages In This Thread
SQLite wont load table? - by Mattakil - 03.10.2013, 18:40
Re: SQLite wont load table? - by Jefff - 03.10.2013, 19:43
Re: SQLite wont load table? - by Mattakil - 03.10.2013, 22:09
Re: SQLite wont load table? - by Jefff - 04.10.2013, 00:23
Re: SQLite wont load table? - by Mattakil - 04.10.2013, 13:36
Re: SQLite wont load table? - by Jefff - 04.10.2013, 17:04
Re: SQLite wont load table? - by Konstantinos - 04.10.2013, 17:08
Re: SQLite wont load table? - by Mattakil - 04.10.2013, 19:27
Re: SQLite wont load table? - by Mattakil - 04.10.2013, 19:38

Forum Jump:


Users browsing this thread: 1 Guest(s)