Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script 463 (void)
- {
- //printbold(s:"463 executing");
- for (int i = 1; i < MAXIDS; i++)
- {
- int points = 0;
- str playerid = strparam(i:i);
- if (StrLen(GetDBEntryString ("PlayerNames", playerid )) == 0 || GetDBEntryString ("PlayerNames", playerid ) == "")
- break;
- int a = 0;
- for (int l = 1; l < MAXIDS; l++)
- {
- str playerid2 = strparam(i:i);
- str mapid = strparam(i:l);
- if (StrLen(GetDBEntryString ("MapNames", mapid )) == 0 || GetDBEntryString ("MapNames", mapid ) == "")
- break;
- str maplumppoints = strparam(s:GetDBEntryString ("MapNames", mapid ),s:"points");
- points += GetDBEntry(maplumppoints,playerid2);
- if (a == 15)
- delay(1);
- else
- a++;
- }
- str playerid3 = strparam(i:i);
- SetDBEntry ("totalpoints", playerid3, points);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment