Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ShowActivityTop(playerid,id) {
- new tot[1024],string[128],name[32],points;
- if(id == 1) format(tot, 256, "#\tClan\tPoints\n");
- else format(tot, 256, "#\tPlayer\tPoints\n");
- for(new i = 1; i <= 15; i ++) {
- if(i > cache_num_rows()) continue;
- if(id == 1) cache_get_field_content(i-1,"Name",name);
- else cache_get_field_content(i-1,"name",name);
- points = cache_get_field_content_int(i-1,"Points");
- format(string,sizeof string,"%d\t%s\t%d\n",i,name,points);
- }
- ShowPlayerDialog(playerid, DIALOG_ACTIVITYTOP2, DIALOG_STYLE_TABLIST_HEADERS,"TOP ACTIVITY", tot, "Ok", "");
- return 1;
- }
Add Comment
Please, Sign In to add comment