Because you are passing id to the %d.
PHP Code:
formatex( szText, charsmax( szText ), "%L", LANG_PLAYER, "ITEM1_MSG", id, get_pcvar_num( hpa_koszt ) );
PHP Code:
formatex( szText, charsmax( szText ), "%L", id, "ITEM1_MSG", get_pcvar_num( hpa_koszt ) );
There is 1 line fix, now use that and correct your other lines
__________________