Guest User

Untitled

a guest
Jul 29th, 2014
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. script 463 (void)
  2. {
  3. //printbold(s:"463 executing");
  4. for (int i = 1; i < MAXIDS; i++)
  5. {
  6. int points = 0;
  7. str playerid = strparam(i:i);
  8. if (StrLen(GetDBEntryString ("PlayerNames", playerid )) == 0 || GetDBEntryString ("PlayerNames", playerid ) == "")
  9. break;
  10. int a = 0;
  11. for (int l = 1; l < MAXIDS; l++)
  12. {
  13. str playerid2 = strparam(i:i);
  14. str mapid = strparam(i:l);
  15. if (StrLen(GetDBEntryString ("MapNames", mapid )) == 0 || GetDBEntryString ("MapNames", mapid ) == "")
  16. break;
  17. str maplumppoints = strparam(s:GetDBEntryString ("MapNames", mapid ),s:"points");
  18. points += GetDBEntry(maplumppoints,playerid2);
  19. if (a == 15)
  20. delay(1);
  21. else
  22. a++;
  23. }
  24. str playerid3 = strparam(i:i);
  25. SetDBEntry ("totalpoints", playerid3, points);
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment