Raised This Month: $ Target: $400
 0% 

Loop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-12-2010 , 02:17   Re: Loop
Reply With Quote #1

Quote:
Originally Posted by #8 SickneSS View Post
I See,and understand, but,i wan't that ppl with [TL] - [CPT] - [CAPTAIN] in the name can use say..
You already have the code for that.

PHP Code:
    if(get_pcvar_num(CptCanSay))
    {
        for(new 
i;sizeof CanSay;i++)
        if(
containi(name,CanSay[i]) != -1)
            return 
PLUGIN_CONTINUE
    

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-12-2010 , 02:25   Re: Loop
Reply With Quote #2

Yes,but i wan't to make all in one cvar (ecept mixm_nosay (This block the chat)) putting the mixm_cptcansay in mixm_nosaytype

I wanted to know if I use a loop for each case using CanSay, would use more memory or something?

Last edited by #8 SickneSS; 05-12-2010 at 02:34.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-12-2010 , 14:37   Re: Loop
Reply With Quote #3

Quote:
Originally Posted by #8 SickneSS View Post
I wanted to know if I use a loop for each case using CanSay, would use more memory or something?
It shouldn't because only one case is executed.
__________________
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 03:35.


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