Raised This Month: $ Target: $400
 0% 

How to count all characters?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tramp
Senior Member
Join Date: Aug 2005
Old 05-20-2008 , 10:24   How to count all characters?
Reply With Quote #1

PHP Code:
public register(idlevelcid)
{
    if (!
cmd_access(idlevelcid3))
    {
        
ColorChat(idGREEN"Error !!");
        return 
PLUGIN_HANDLED
    
}
    
    new 
Arg1[16]
    new 
Arg2[16]
    
    
read_argv(1Arg115)
    
read_argv(2Arg215)
    
    if ( 
something :)
    {
        
ColorChat(idGREY"You have to type at least 6 characters!");
        return 
PLUGIN_HANDLED
    
}

    ................

    return 
PLUGIN_HANDLED

And now how to get a amount of characters in Arg1 and Arg2 which were typed by player.

I need it to register plugin. I want login and password with 6 chars or more.

Thanks for help
__________________
STER-Gaming.pl - The Best Multigaming Club, CS 1.6, CS:S, ET, COD 2 more and more ! Check forum forum.ster-gaming.pl

amxmodx - Polish support about amxx.
Tramp is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-20-2008 , 10:34   Re: How to count all characters?
Reply With Quote #2

strlen( const str[] )
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Tramp
Senior Member
Join Date: Aug 2005
Old 05-20-2008 , 10:41   Re: How to count all characters?
Reply With Quote #3

Thanks

I was looking it around read_xxxxx functions >.<
__________________
STER-Gaming.pl - The Best Multigaming Club, CS 1.6, CS:S, ET, COD 2 more and more ! Check forum forum.ster-gaming.pl

amxmodx - Polish support about amxx.
Tramp 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 21:08.


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