Raised This Month: $ Target: $400
 0% 

arguments, characters.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NewUser
Member
Join Date: Mar 2006
Location: over there
Old 01-15-2007 , 16:41   arguments, characters.
Reply With Quote #1

How do I check if an argument has less than or greater than three characters? Or even just to check to see if an argument has three characters. Either is fine.
__________________
LEWL.
NewUser is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-15-2007 , 16:44   Re: arguments, characters.
Reply With Quote #2

Code:
new len = strlen(string); if(len < 3)     server_print("Less than 3 characters"); else     server_print("More than 3 characters");
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 01-15-2007 , 18:01   Re: arguments, characters.
Reply With Quote #3

And this, is wrong.
For obvious reasons.

Code:
new len = strlen(string); if(len < 3)     server_print("Less than 3 characters"); else     server_print("More than or equal to 3 characters");
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood 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 22:30.


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