13.01.2014, 11:43
Cant get to work this code
I am trying to count all members from the faction but it doesnt works
and then iam using it like this
But its displaying 0 while there are more then 3 members.
Whats wrong here?
I am trying to count all members from the faction but it doesnt works
pawn Код:
new query [ 124 ];
format(query, sizeof(query), "SELECT Faction FROM players WHERE Faction = '%s'", PlayerInfo[playerid][playerteam]);
mysql_query(query);
mysql_store_result();
new rows = mysql_num_rows();
mysql_free_result();
pawn Код:
format(iStr, sizeof(iStr), " F-Members: %d/%d", rows, dini_Int(tmpf,"fmemberslots"));
SendClientMessage(playerid, COLOR_WHITE, iStr);
Whats wrong here?