Raised This Month: $ Target: $400
 0% 

Block Maker Code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
boltah
Junior Member
Join Date: Aug 2009
Old 01-24-2010 , 08:14   Block Maker Code
Reply With Quote #1

Hey there!

I need some help on my block maker. Dont know the exact code for some things.

Code:
new const g_model_Trampoline[] =                  "models/stressless/trampoline.mdl";
It says : Warning 203: Symbol is never used: "g_model_trampoline"



Code:
new iHealth = get_user_health( id );
    if( iHealth >= 100 || iHealth == 250 ) return PLUGIN_HANDLED;
    
    if( iHealth < 100 )
    {
        iHealth = min( 100, iHealth + floatround(get_cvar_float("bm_healamount"), floatround_floor) );
    }
    else //if( iHealth > 100 )
    {
        return PLUGIN_HANDLED;
    }
    
    set_user_health(id, iHealth);
What should i add to the health thing to get my healer get more than 100 HP?

I got EXolents XP mod. And when I got 120 hp for example, the healer wont heal me if im going down to 110 HP.

Anyone can help me?

Last edited by boltah; 01-24-2010 at 08:17.
boltah is offline
Kaaba
Member
Join Date: Nov 2009
Old 01-24-2010 , 08:17   Re: Block Maker Code
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=107153
Kaaba is offline
boltah
Junior Member
Join Date: Aug 2009
Old 01-24-2010 , 08:40   Re: Block Maker Code
Reply With Quote #3

Many other treads is in this forum. And its not a request, its a question about help on scripting
boltah is offline
RelaxMazteR
Member
Join Date: Jul 2009
Location: Sweden
Old 01-24-2010 , 08:50   Re: Block Maker Code
Reply With Quote #4

It means that it is never used. You should add this
gszBlockModels[BM_TRAMPOLINE] = g_model_Trampoline;
in plugin_precache

Subject healer, use this code instead
if (halflife_time() >= gfNextHealTime[id])
{
new iHealth = ( get_user_health( id ) );

if( iHealth < 100 ) {
set_pev( id, pev_health, float( iHealth ) );
} else {
if( get_user_health( id ) < 100 )
set_pev( id, pev_health, 100.0 );
}
}
}
RelaxMazteR is offline
boltah
Junior Member
Join Date: Aug 2009
Old 01-24-2010 , 09:13   Re: Block Maker Code
Reply With Quote #5

Dont works

Gets alot errors and wont compile
boltah is offline
RelaxMazteR
Member
Join Date: Jul 2009
Location: Sweden
Old 01-24-2010 , 09:57   Re: Block Maker Code
Reply With Quote #6

send me the errors then
RelaxMazteR is offline
boltah
Junior Member
Join Date: Aug 2009
Old 01-24-2010 , 10:35   Re: Block Maker Code
Reply With Quote #7

Undefined symbol "g_model_trampoline"

error 033: array must be indexed (variable gszBlockModels
boltah is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 01-24-2010 , 12:09   Re: Block Maker Code
Reply With Quote #8

Quote:
Originally Posted by boltah View Post
Undefined symbol "g_model_trampoline"

error 033: array must be indexed (variable gszBlockModels
Undefined symbol "g_model_trampoline" - This means g_model_trampoline doesn't exist.

error 033: array must be indexed (variable gszBlockModels) - This means gszBlockModels needs to be indexed, for example gszBlockModels[6], but in your case you should have gszBlockModels[BM_TRAMPOLINE]
zacky is offline
Send a message via Skype™ to zacky
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-24-2010 , 14:37   Re: Block Maker Code
Reply With Quote #9

Case sensitive.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
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:20.


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