08.03.2014, 10:00
Do you want to load ALL the members or just the leader?
If you only want the leader, it should be something like this
If you want to load all the members, you have to create a loop.
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.
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;
}