Raised This Month: $ Target: $400
 0% 

Damage position


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-17-2013 , 08:34   Damage position
Reply With Quote #1

How to show damage in next line ? ^n duoesn't work...

PHP Code:
new Float:g_DmgPos[3][] = {{0.40}, {0.45}, {0.50}};

new 
0i++;
set_dhudmessage3525035,  0.37g_DmgPos[i][0], 20.31.00.10.5 );
show_dhudmessageiAttacker"%i"damage ); 
Must be like that.
PHP Code:
set_dhudmessage3515035,  0.370.4020.31.00.10.5 );
show_dhudmessageiAttacker"%i"damage );

set_dhudmessage3515035,  0.370.4520.31.00.10.5 );
show_dhudmessageiAttacker"%i"damage );

set_dhudmessage3515035,  0.370.5020.31.00.10.5 );
show_dhudmessageiAttacker"%i"damage ); 
Debesėlis is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 10-17-2013 , 09:16   Re: Damage position
Reply With Quote #2

How does ^n not work?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-17-2013 , 09:55   Re: Damage position
Reply With Quote #3

I don't know...

Show me dmg in same position. damage on damage...
PHP Code:
set_dhudmessage35150350.370.4020.31.00.10.5 );
show_dhudmessageiAttacker"%i^n^n^n"damage ); 
Debesėlis is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 10-17-2013 , 10:01   Re: Damage position
Reply With Quote #4

Code:
show_dhudmessage( iAttacker, "%i^n^n^n", damage )
>

Code:
show_dhudmessage( iAttacker, "%i^n%i^n%i^n%i", damage, damage, damage, damage)
Randomize is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-17-2013 , 10:28   Re: Damage position
Reply With Quote #5

Quote:
Originally Posted by Randomize View Post
Code:
show_dhudmessage( iAttacker, "%i^n^n^n", damage )
>

Code:
show_dhudmessage( iAttacker, "%i^n%i^n%i^n%i", damage, damage, damage, damage)
lol. this will show me 4 same dmg if i shot one time?

What i need : When i shot 3 times (with different dmg) must be 3 dmg message but not in same line.
Debesėlis is offline
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 10-17-2013 , 10:41   Re: Damage position
Reply With Quote #6

Code:
public ShowDamage( iAttacker, damage) {
    static const Float:g_DmgPos[3] = {0.40, 0.45, 0.50};
    static i;
    set_dhudmessage( 35, 150, 35, 0.37, g_DmgPos[i], 2, 0.3, 1.0, 0.1, 0.5 );
    show_dhudmessage( iAttacker, "%i", damage);
    i = i<2 ? i+1 : 0;
}
In TakeDamage CallBack function (or what you want), put this "ShowDamage( iAttacker, damage )".

Last edited by DWIGHTpN; 10-17-2013 at 10:46.
DWIGHTpN is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 10-18-2013 , 04:07   Re: Damage position
Reply With Quote #7

Quote:
Originally Posted by Randomize View Post
Code:
show_dhudmessage( iAttacker, "%i^n^n^n", damage )
>

Code:
show_dhudmessage( iAttacker, "%i^n%i^n%i^n%i", damage, damage, damage, damage)
You do realize you are putting the new line after the damage? You have to put before the damage.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-18-2013 , 05:56   Re: Damage position
Reply With Quote #8

Quote:
Originally Posted by DWIGHTpN View Post
Code:
public ShowDamage( iAttacker, damage) {
    static const Float:g_DmgPos[3] = {0.40, 0.45, 0.50};
    static i;
    set_dhudmessage( 35, 150, 35, 0.37, g_DmgPos[i], 2, 0.3, 1.0, 0.1, 0.5 );
    show_dhudmessage( iAttacker, "%i", damage);
    i = i<2 ? i+1 : 0;
}
In TakeDamage CallBack function (or what you want), put this "ShowDamage( iAttacker, damage )".
Perfect. Thanks
Debesėlis is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode