Raised This Month: $ Target: $400
 0% 

slow % in hud [solved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 10-07-2007 , 01:07   slow % in hud [solved]
Reply With Quote #1

im trying to show the % sign in hud, i tried %% and it still doent show
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME

Last edited by kp_uparrow; 10-10-2007 at 23:51.
kp_uparrow is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-07-2007 , 01:42   Re: slow % in hud
Reply With Quote #2

Try ^%
__________________
M249-M4A1 is offline
Old 10-07-2007, 02:06
Arkshine
This message has been deleted by Arkshine. Reason: nvm
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 10-07-2007 , 14:33   Re: slow % in hud
Reply With Quote #4

^% didnt work
\% didnt work
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-07-2007 , 14:38   Re: slow % in hud
Reply With Quote #5

Show code
__________________
M249-M4A1 is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 10-07-2007 , 14:55   Re: slow % in hud
Reply With Quote #6

Code:
new szSkillName[64], iSkillLevel;         new szMsg[256], szUltimate[256],    szPassive[256];         new pos = 0,            posU = 0,           posP = 0;                 new iSkillLevel2         // Loop through all available skills to find the trainable options...         for ( new iSkillID = 0; iSkillID < MAX_SKILLS; iSkillID++ )         {             // Get the skill's level             iSkillLevel = SM_GetSkillLevel( id, iSkillID, 8 );             iSkillLevel2=iSkillLevel-1             // If the skill level is > 0 then the user has this skill!             if ( iSkillLevel > 0 )             {                 // Get the skill's name                 LANG_GetSkillName( iSkillID , id, szSkillName, 63, 19 );                 // Trainable skill                 if ( SM_GetSkillType( iSkillID ) == SKILL_TYPE_TRAINABLE )                 {                     pos += formatex( szMsg[pos], 256-pos, "^n%s %L %d", szSkillName, id, "WORD_LEVEL", iSkillLevel );                                                             switch(iSkillID){                         case 0:pos += formatex( szMsg[pos], 256-pos, " (%d^%)",floatround(p_vampiric[iSkillLevel2]*100))                         case 1:pos += formatex( szMsg[pos], 256-pos, " (%d speed)",floatround(p_unholy[iSkillLevel2]))                         case 2:pos += formatex( szMsg[pos], 256-pos, " (%d\%)",floatround(p_levitation[iSkillLevel2]*100))                                                 case 4:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(float(p_invisibility[iSkillLevel2])/255.0*100.0))                         case 5:pos += formatex( szMsg[pos], 256-pos, " (+%dhp)", p_devotion*(iSkillLevel2+1))                         case 6:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_bash[iSkillLevel2]*100))                                                 case 8:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_critical[iSkillLevel2]*100))                         case 9:pos += formatex( szMsg[pos], 256-pos, " (%fX)",p_grenade[iSkillLevel2])                         case 10:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_ankh[iSkillLevel2]*100))                                                 case 12:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_evasion[iSkillLevel2]*100))                         case 13:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_thorns[iSkillLevel2]*100))                         case 14:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_trueshot[iSkillLevel2]*100))                                                 case 16:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_phoenix[iSkillLevel2]*100))                         case 17:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_banish[iSkillLevel2]*100))                         case 18:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_mana[iSkillLevel2]*100))                                                 case 21:pos += formatex( szMsg[pos], 256-pos, " (%f sec)",p_heal[iSkillLevel2])                         case 22:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_hex[iSkillLevel2]*100))                         case 23:pos += formatex( szMsg[pos], 256-pos, " (%d)",p_serpent[iSkillLevel2])                                                 case 26:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_fan[iSkillLevel2]*100))                         case 27:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_blink[iSkillLevel2]*100))                         case 28:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_shadow[iSkillLevel2]*100))                                                 case 31:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_impale[iSkillLevel2]*100))                         case 32:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_spiked[iSkillLevel2]*100))                         case 33:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",floatround(p_carrion[iSkillLevel2]*100))                         //default:pos += formatex( szMsg[pos], 256-pos, " (%d%%)",pp);                     }                 }                 // Skill is an ultimate                 else if ( SM_GetSkillType( iSkillID ) == SKILL_TYPE_ULTIMATE && iSkillLevel > 0 )                 {                     posU += formatex( szUltimate[posU], 255-posU, "^n%L: %s", id, "WORD_ULTIMATE", szSkillName );                 }                 // Skill is passive                 else if ( SM_GetSkillType( iSkillID ) == SKILL_TYPE_PASSIVE )                 {                     posP += formatex( szPassive[posP], 255-posP, "^n%s", szSkillName );                 }             }         }
^% shows nothing and \% shows \
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-07-2007 , 15:00   Re: slow % in hud
Reply With Quote #7

What line am I looking at?
__________________
M249-M4A1 is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 10-07-2007 , 20:28   Re: slow % in hud
Reply With Quote #8

switch(iSkillID){
case 0:pos += formatex( szMsg[pos], 256-pos, " (%d^%)",floatround(p_vampiric[iSkillLevel2]*100))
case 1:pos += formatex( szMsg[pos], 256-pos, " (%d speed)",floatround(p_unholy[iSkillLevel2]))
case 2:pos += formatex( szMsg[pos], 256-pos, " (%d\%)
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 10-08-2007 , 06:41   Re: slow % in hud
Reply With Quote #9

I assume it's an HL thing ...

You can't say it.

The only option would be to try:

"^^^%" which should pass "^%" to HL, which it *might* translate into the % sign.
purple_pixie is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 10-08-2007 , 13:40   Re: slow % in hud
Reply With Quote #10

That's just stupid, it should work. %% is the correct useage, however you could always do format(..., ..., "%s", "%").
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
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 07:58.


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