Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Fix Code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-20-2017 , 06:58   Re: [ H3LP ] Use %% if ^n
Reply With Quote #1

Show the part of code with show_hudmessage.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
DarthMan
Veteran Member
Join Date: Aug 2011
Old 07-20-2017 , 07:02   Re: [ H3LP ] Use %% if ^n
Reply With Quote #2

Quote:
Originally Posted by PRoSToTeM@ View Post
Show the part of code with show_hudmessage.
Code:
public mapvote_hud(taskid) {     if(!PLAYERS_CONNECTED)         return;         new i_Ent = -1, x_Ent = -1, iArray[MAXSHOW];     new Float:fCurrHealth, iHealth, iCount;     new buff[1024], szList[1024];         for(new i = 0, j; i < EXISTED_PANELS; i++)     {         if(iCount >= MAXSHOW)         {             break;         }                 i_Ent = PANELS[i];                 if(!pev_valid(i_Ent))             continue;                 iHealth = pev(i_Ent, pev_health, fCurrHealth);                 if(fCurrHealth >= MAX_PANEL_HEALTH)             continue;                 iArray[iCount] = i_Ent;                 for(j = i+1; j < EXISTED_PANELS; j++)         {             x_Ent = PANELS[j];                         if(pev(i_Ent, pev_health) > pev(x_Ent, pev_health))             {                 iArray[iCount] = x_Ent;             }         }                 iCount ++;     }         if(!iCount)         return;         new sBuffer[500], szTemp[32];         for(new i; i < iCount; i++)     {         x_Ent = iArray[i]                 pev(x_Ent, pev_targetname, szTemp, charsmax(szTemp))         pev(x_Ent, pev_health, fCurrHealth)                 iHealth = floatround((fCurrHealth / MAX_PANEL_HEALTH) * 100)         formatex(sBuffer, charsmax(sBuffer), "%s. %s - %d%%^n", map_position[i], szTemp, iHealth)         add( buff, charsmax( buff ), sBuffer )     }         formatex(szList, charsmax(szList), "Vote Results:^n%s", buff)         set_hudmessage(255, 255, 255, 0.80, 0.05, 0, 0.0, 0.2, 0.0, 0.0, 4)     show_hudmessage(0,  "%s", szList) }

Maybe you can fix the sorting

Last edited by DarthMan; 07-20-2017 at 08:04.
DarthMan 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 23:03.


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