A nie lepiej zrobić tak:
var string concatText2;
if(add_xp + hero.exp > hero.exp_next){
concatText2 = ConcatStrings(PRINT_XP, IntToString((hero.exp_next +((hero.level+1)*500)) - hero.exp));
PrintScreen (concatText2, -1, 58, "FONT_OLD_10_WHITE.TGA", 3);
}
else{
concatText2 = ConcatStrings(PRINT_XP, IntToString(hero.exp_next - hero.exp));
PrintScreen (concatText2, -1, 58, "FONT_OLD_10_WHITE.TGA", 3);
};
Nie testowałem jak nie działa to przerobie.
Tam gdzie jest hero.level + 1 może być + 2.