Count Issue
#3

Whoops. Thanks, I was just trying something like this and failed lol

pawn Код:
stock LoadFactions()
{
    new str[400];
    fcount = 0;
    new index;
    mysql_query("SELECT * FROM `Factions`");
    mysql_store_result();
    if(mysql_num_rows() > 0)
    {
        while(mysql_fetch_row(str))
        {
       
            sscanf(str, "p<|>ds[30]dd",
            FactionInfo[index][ID],
            FactionInfo[index][Name],
            FactionInfo[index][Type],
            FactionInfo[index][FBank]);
            printf("%s | %d | %d glsgs", FactionInfo[index][Name],FactionInfo[index][Type],FactionInfo[index][FBank]);
            fcount++;
        }
    }
    mysql_free_result();
    printf("Loaded %d factions",index);
    return 1;
}
I'll try yours.
Reply


Messages In This Thread
Count Issue - by Abreezy - 14.02.2012, 01:35
Re: Count Issue - by [HiC]TheKiller - 14.02.2012, 02:21
Re: Count Issue - by Abreezy - 14.02.2012, 02:31
Re: Count Issue - by Abreezy - 14.02.2012, 02:37
Re: Count Issue - by KingHual - 14.02.2012, 04:06
Re: Count Issue - by [HiC]TheKiller - 14.02.2012, 04:28
Re: Count Issue - by Abreezy - 14.02.2012, 04:35
Re: Count Issue - by Abreezy - 14.02.2012, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)