Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. function returnplayers() external view returns(address[],uint[],uint[],uint[],uint[],uint[],uint[]) {
  2.  
  3. address[] memory addrs = new address[](count);
  4. uint[] memory balls_a = new uint[](count);
  5. uint[] memory balls_b = new uint[](count);
  6. uint[] memory balls_c = new uint[](count);
  7. uint[] memory balls_d = new uint[](count);
  8. uint[] memory balls_e = new uint[](count);
  9. uint[] memory balls_mega = new uint[](count);
  10.  
  11. for (uint i = 0; i < count; i++) {
  12. Users memory user = users[i];
  13. addrs[i] = user.player;
  14. balls_a[i] = user.no1;
  15. balls_b[i] = user.no2;
  16. balls_c[i] = user.no3;
  17. balls_d[i] = user.no4;
  18. balls_e[i] = user.no5;
  19. balls_mega[i] = user.no6;
  20. }
  21.  
  22. return (addrs, balls_a, balls_b, balls_c, balls_d, balls_e, balls_mega);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement