Raised This Month: $ Target: $400
 0% 

Loosing healthpack on healerblock.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
D-TOX
Member
Join Date: Mar 2008
Old 11-22-2009 , 13:51   Re: Loosing healthpack on healerblock.
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
Update the code with that one and recompile :

PHP Code:
actionHeal(id)
{
    new 
Float:fGameTime get_gametime()
    if(
fGameTime gfNextHealTime[id])
    {
        new 
iHealth get_user_health(id);
        if( 
iHealth 100 )
        {
            static 
pCvarBmHealAmount;
            if( !
pCvarBmHealAmount )
            {
                
pCvarBmHealAmount get_cvar_pointer("bm_healamount");
            }
            
iHealth += get_pcvar_num(pCvarBmHealAmount);
            if( 
iHealth 100 )
            {
                
iHealth 100;
            }
            
set_user_health(idiHealth);
            
gfNextHealTime[id] = fGameTime 0.5;
        }
    }

Didnt work.


//// ijump_ibcm.sma
// C:\Program Files\Steam\steamapps\anton_sexy\counter-strike\cstrike\addons\amx
modx\Copy of scripting\ijump_ibcm.sma(1476) : error 001: expected token: ";", bu
t found "if"
//
// 1 Error.
// Could not locate output file compiled\ijump_ibcm.amx (compile failed).

Press enter to exit ...


Row 1476 : if(fGameTime > gfNextHealTime[id])
__________________
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░█▀▀ ░█▀█ ░█ ░█▀▀ ░░█▀▀ ░█▀█ ░█ ░█░░░
░█▀▀ ░█▀▀ ░█ ░█ ░░░░█▀▀ ░█▀█ ░█ ░█░░░
░▀▀▀ ░▀ ░░░▀ ░▀▀▀ ░░▀ ░░░▀░▀ ░▀ ░▀▀▀░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Last edited by D-TOX; 11-22-2009 at 14:02.
D-TOX is offline
 



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 13:42.


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