Raised This Month: $ Target: $400
 0% 

Empty string? How can I check?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-06-2011 , 18:20   Re: Empty string? How can I check?
Reply With Quote #2

Title says a different thing... but anyway: if(strlen(string) > 0) or just if(string[0]) to check an empty string.

About the arguments, you can get all arguments stacked together with read_args() if you're just going to add all of them like that anyway.

And about less than 4 arguments, you should modify cmd_access()'s 4th argument to 1, that sets the required number of arguments, that's why you can't use less.
__________________
Hunter-Digital is offline
 



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 04:31.


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