Raised This Month: $51 Target: $400
 12% 

no idea where to start


Post New Thread Reply   
 
Thread Tools Display Modes
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-30-2007 , 03:33   Re: no idea where to start
Reply With Quote #11

Quote:
Originally Posted by Lee View Post
Provided it worked before..
No, i got this hobby to post broken codes for no reason whatsoever...
Deviance is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 07-30-2007 , 04:12   Re: no idea where to start
Reply With Quote #12

You're a better coder than me, but even the best can make silly errors. Relax.

Last edited by Lee; 07-30-2007 at 06:50.
Lee is offline
owned
Member
Join Date: Jul 2007
Old 07-31-2007 , 18:46   Re: no idea where to start
Reply With Quote #13

That works fine, but if I do:

amx_sexyslap name -1

It doesn't stop slapping them.

Is it possible to limit the slap number, and has to be greater than or equal to 1, and less than or equal to 15?
__________________
MARREC/OWNED = me.
owned is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 07-31-2007 , 21:53   Re: no idea where to start
Reply With Quote #14

sure. replace
Code:
    new times = str_to_num(arg2)
    set_task(0.1, "sexyslap", player, _, _, "a", times)
with
Code:
    new times = str_to_num(arg2)
    if (times < 1) times = 1
    if (times > 10) times = 10
    set_task(0.1, "sexyslap", player, _, _, "a", times)
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
owned
Member
Join Date: Jul 2007
Old 08-01-2007 , 19:11   Re: no idea where to start
Reply With Quote #15

Thanks, I'll try it.
__________________
MARREC/OWNED = me.
owned 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 03:53.


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