You could break it by spaces with strbreak(), turn the string into a number with str_to_num(), edit the number and then add the two parts together again using formatex(%d %s, first_number, rest_of_string)
This example reproduces your example:
Code:
new left[32], right[128], test[128] = "2440 0 2 5 3 0 0 0 0 0 0 0 0";
strbreak(test, left, 31, right, 127);
new leftnum = str_to_num(left);
leftnum += 1004;
formatex(test, 127, "%d %s", leftnum, right);
server_print("%s", test);
Output:
Code:
3444 0 2 5 3 0 0 0 0 0 0 0 0
If you want to break it further you could use strbreak() or even parse() if you want to break most of it apart.