Raised This Month: $ Target: $400
 0% 

Getting empty string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-30-2008 , 16:08   Re: Getting empty string
Reply With Quote #5

Quote:
Originally Posted by Hawk552 View Post
The second won't compile. You would have to use:

Code:
if(player1[0] == '\0')


or

Code:
if(!player1[0])


I prefer the latter because the escape character can be changed using compiler options, but the null character is still 0.
You guys forgot that the default escape char in AMXX is '^'.
__________________

Community / No support through PM
danielkza 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 09:15.


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