Raised This Month: $ Target: $400
 0% 

Blowback Bob help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-(A99)- | sk8er
New Member
Join Date: Aug 2005
Old 08-31-2005 , 20:07   Blowback Bob help
Reply With Quote #1

sh_blowbackbob.sma(130) : error 017: undefined symbol "enemyPushed"\

Code:
//---------------------------------------------------------------------------------------------- public force_wind(id) {     {     new team[33], players[32], pnum, origin[3], vorigin[3], parm[4]     new Float:tempVelocity[3] = {0.0, 0.0, 200.0}     new bool:enemyPushed = false     get_user_team(id, team, 32)     // Find all alive enemies     if ( equali(team, "CT") ) {         get_players(players, pnum, "ae", "TERRORIST")     }     else {         get_players(players, pnum, "ae", "CT")     }     get_user_origin(id, origin)     for ( new victim = 0; victim < pnum; victim++ ) {         get_user_origin(players[victim], vorigin)         if ( get_distance(origin, vorigin) < get_cvar_num("bob_radius") ) {             // Set cooldown/sound/self damage only once, if push is used             if ( !enemyPushed ) {                 if (get_cvar_float("bob_cooldown") > 0.0) ultimateTimer(id, get_cvar_float("bob_cooldown"))                 }                 enemyPushed = true             }             // Stun enemy makes them easier to push             shStun(players[victim], 1)             set_user_maxspeed(players[victim], 1.0)             // First lift them             Entvars_Set_Vector(players[victim], EV_VEC_velocity, tempVelocity)             // Then push them back in x seconds after lift and do some damage             set_task(0.1, "move_enemy", 0, parm, 4)         }     }     if ( !enemyPushed && is_user_alive(id) ) {         client_print(id, print_chat, "[SH](Blowback Bob) No one around")     } } //----------------------------------------------------------------------------------------------

can any1 help me
-(A99)- | sk8er is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-31-2005 , 20:12  
Reply With Quote #2

Code:
public force_wind(id) {     { // remove this
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
-(A99)- | sk8er
New Member
Join Date: Aug 2005
Old 08-31-2005 , 20:59  
Reply With Quote #3

that made it worse
-(A99)- | sk8er is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-31-2005 , 22:17  
Reply With Quote #4

somewhere in there there is an extra '{' though
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-31-2005 , 22:38   Re: Blowback Bob help
Reply With Quote #5

Code:
            if ( !enemyPushed ) { 
                if (get_cvar_float("bob_cooldown") > 0.0) ultimateTimer(id, get_cvar_float("bob_cooldown")) 

                } 
                enemyPushed = true 
            }
That is all wrongly punctuated. I dunno what you are even trying to do... And also what v3x said to do was correct as well.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-31-2005 , 22:41   Re: Blowback Bob help
Reply With Quote #6

Code:
            if ( !enemyPushed && get_cvar_float("bob_cooldown") > 0.0) {
                     ultimateTimer(id, get_cvar_float("bob_cooldown"))
                     enemyPushed = true
            }
Should work, i think thats what u want to do (and do what v3x said...still)
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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 14:30.


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