07.07.2013, 20:16
Hello, me need a code which show list in SendClientMessage people which working in our work (And not online people). And their XP count.
Thanks.
Thanks.
mysql_function_query(dbHandle, "SELECT `name`, `xp` FROM `team` ORDER BY `xp` ASC", true, "ShowTeam", "i", playerid);
public ShowTeam(playerid)
{
new rows, fields;
cache_get_data(rows, fields);
if(rows)
{
new temp[9], i, name[24], xp, string[128];
while(i < rows)
{
cache_get_row(i, 0, name);
cache_get_row(i, 1, temp);
xp = strval(temp);
format(string, sizeof(string), "%s - %d exp", name, xp);
SendClientMessage(playerid, white, string);
i++;
}
}
return 1;
}