Raised This Month: $ Target: $400
 0% 

[Help] Need help with code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-17-2014 , 16:36   Re: [Help] Need help with code
Reply With Quote #1

Quote:
Originally Posted by popeye10 View Post
i want
when victim frag 0
killer not take him frags
PHP Code:
set_user_frags(killerget_user_frags(killer) + amount);
set_user_frags(victimget_user_frags(victim) - amount); 
if(!get_user_frags(victim)) return PLUGIN_HANDLED
__________________
Jhob94 is online now
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-17-2014 , 19:22   Re: [Help] Need help with code
Reply With Quote #2

Quote:
Originally Posted by Jhob94 View Post
if(!get_user_frags(victim)) return PLUGIN_HANDLED
And how is that advice helpful?
__________________

Last edited by fysiks; 11-17-2014 at 19:22.
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-18-2014 , 04:08   Re: [Help] Need help with code
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
And how is that advice helpful?
You don't know read? He asked how to check if user has not frags, so i told him.. How is your reply helpful?
__________________
Jhob94 is online now
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-18-2014 , 19:26   Re: [Help] Need help with code
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
You don't know read? He asked how to check if user has not frags, so i told him.. How is your reply helpful?
I didn't find your post helpful because your code was given without any context. It's useless without context because you don't know where in his code he wants the functionality. Returning in a random place doesn't generally do any good unless you know all the code that exists in the function.
__________________
fysiks 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 17:31.


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