SA-MP Forums Archive
Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem (/showthread.php?tid=449929)



Problem - Tanush123 - 10.07.2013

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;
}



Re: Problem - SuperViper - 10.07.2013

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


Re: Problem - Tanush123 - 10.07.2013

Doesn't fix it.


Re: Problem - Tanush123 - 15.07.2013

bump