Problem
#1

Well im trying to get people's name which has the same variable as them, but instead i get no names
pawn Код:
CMD:omembers(playerid,params[])
{
    new oLeader[35];
    if(PlayerData[playerid][Member] == -255) return SCM(playerid,grey,"You're not in an organization.");
    CheckMySQL();
    format(str,sizeof(str),"SELECT * FROM orgs WHERE Member = %d",PlayerData[playerid][Member]);
    mysql_query(str);
    mysql_store_result();
    SCM(playerid,-1,"-------------------------Org Members-------------------------");
    while(mysql_retrieve_row())
    {
        mysql_free_result();
        mysql_fetch_field_row(oLeader,"Name");
        format(str,sizeof(str),"%s",oLeader);
        SCM(playerid,0x408080FF,str);
    }
    return 1;
}
Reply
#2

Remove the mysql_free_result and put it at the end of the while loop.
Reply
#3

Doesn't fix it.
Reply
#4

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)