Guest User

Untitled

a guest
May 14th, 2020
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. function ShowActivityTop(playerid,id) {
  2. new tot[1024],string[128],name[32],points;
  3. if(id == 1) format(tot, 256, "#\tClan\tPoints\n");
  4. else format(tot, 256, "#\tPlayer\tPoints\n");
  5. for(new i = 1; i <= 15; i ++) {
  6. if(i > cache_num_rows()) continue;
  7. if(id == 1) cache_get_field_content(i-1,"Name",name);
  8. else cache_get_field_content(i-1,"name",name);
  9. points = cache_get_field_content_int(i-1,"Points");
  10. format(string,sizeof string,"%d\t%s\t%d\n",i,name,points);
  11. }
  12. ShowPlayerDialog(playerid, DIALOG_ACTIVITYTOP2, DIALOG_STYLE_TABLIST_HEADERS,"TOP ACTIVITY", tot, "Ok", "");
  13. return 1;
  14. }
Add Comment
Please, Sign In to add comment