10.07.2013, 19:39
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;
}