Hello, with my poor knowledge on scripting I edited the uq_jumpstats plugin but I would like to add something else.
this is the code :
Code:
ColorChat(ids, RED, "[%s] %s %s %.3f units! Strafes: %d Sync: %d ^x01%s ^x01%s",prefix, g_playername[id],Jtype[id], distance[id],strafe_num[id], sync_[id],block_str,pre_type[id]);
I want to add the string for showing the prestrafe the guy had but without deciamals because this is a colorchat print, actually its something like this
PHP Code:
[kz] Player LongJump'd 240.766 units! Strafes: 7 Sync: 90
but i want to change it and looks like this
[kz] Player LongJump'd 240.766 units! Strafes: 7 Sync: 90 Pre: 270 (without decimals)
I know the string to do it but what I actually don't know is which code I need to use because there are many, such as %s, %d %.3f.