clan rank bug
#1

when im selecting a player from this list of memebrs to change their rank it only sets my rank,or the rank of the person who selects the member i don't know what the problem
the part with the rank select it's not posted here, i will post it if it's necessary

new aim[569],query[300],clanrank,skin,string[MAX_PLAYER_NAME],idd,mid=1, name[MAX_PLAYER_NAME + 20], test[128];
format(query, sizeof(query), "SELECT * FROM `users` WHERE `Clanid` = '%d' ORDER BY `ClanRank` DESC LIMIT 10", PlayerInfo[playerid][pClanid]);
new cache:membersmod = mysql_query(mysql, query);
for(new i, j = cache_get_row_count(); i < j; i++)
{
cache_get_field_content(i, "Username", string);
clanrank = cache_get_field_content_int(i, "ClanRank");
skin = cache_get_field_content_int(i, "Skin");
new idd = GetPlayerID(string);
format(Selected[playerid][mid], MAX_PLAYER_NAME, string);
format(aim, sizeof(aim), "%s%s\t%d\t%d\t%s\n",aim ,string, clanrank, skin, ( idd != INVALID_PLAYER_ID) ? ("online") : ("offline"));
mid++;
}
format(test, sizeof(test), "Name\tRank\tSkin\tStatus\n%s", aim);
cache_delete(membersmod);
ShowPlayerDialog(playerid, DIALOG_CMODIFICATIONS, DIALOG_STYLE_TABLIST_HEADERS, "Members :",test, "Select", "Cancel");
}
Reply


Messages In This Thread
clan rank bug - by bosmania - 29.03.2019, 13:52
Re: clan rank bug - by bgedition - 29.03.2019, 15:12
Re: clan rank bug - by Lirbo - 29.03.2019, 15:12
Re: clan rank bug - by bgedition - 29.03.2019, 15:30
Re: clan rank bug - by solstice_ - 29.03.2019, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)