[HELP]Please help loading leader name
#3

Do you want to load ALL the members or just the leader?

If you only want the leader, it should be something like this
pawn Код:
mysql_format(mysql,query,sizeof(query),"SELECT * FROM `fbiclanovi` WHERE Leader1=?"); // Edit the question mark accordingly.
If you want to load all the members, you have to create a loop.
pawn Код:
forward LoadFBI();
public LoadFBI()
{
    new rows,fields, idx;
    cache_get_data(rows,fields,mysql);
    if(rows)
    {
        while(idx < rows)
        {
            // Fetch all the data on current row.
            idx++;
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP]Please help loading leader name - by Luca12 - 07.03.2014, 23:03
Re: [HELP]Please help loading leader name - by Luca12 - 08.03.2014, 09:51
Re: [HELP]Please help loading leader name - by Knappen - 08.03.2014, 10:00
Re: [HELP]Please help loading leader name - by Luca12 - 08.03.2014, 10:08
Re: [HELP]Please help loading leader name - by Knappen - 08.03.2014, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)