Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock GetHighestNumber(...) // by Johurt specialy for LUK4S
- {
- new k, a = numargs(), maxv;
- for(k = 0; k < a; k++)
- {
- if(k == 0) { maxv = getarg(0); continue; }
- if(getarg(k) > maxv) maxv = getarg(k);
- }
- return maxv;
- }
- /*
- Example: printf("%d", GetHighestNumber(50, 51, 100, 12432, 4325435, 2132348043));
- Prints: 2132348043
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement