Raised This Month: $ Target: $400
 0% 

Getting rid of Get_User_attack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 10-15-2005 , 22:33  
Reply With Quote #1

Like something like this -
Code:
    new damage = read_data(2)     new weapon, bodypart, attacker = get_user_attacker(id,weapon,bodypart)         if ( attacker < 0 || attacker > SH_MAXSLOTS ) return PLUGIN_CONTINUE
What do i need to change or add?

and where do i put that if (id > 0)
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-15-2005 , 22:35  
Reply With Quote #2

You put it around the entire code

Code:
public MyFunc(id) {   if(id > 0) {       new damage = read_data(2)       new weapon, bodypart, attacker = get_user_attacker(id,weapon,bodypart)           if ( attacker < 0 || attacker > SH_MAXSLOTS ) return PLUGIN_CONTINUE      } }
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 00:00.


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