Raised This Month: $19 Target: $400
 4% 

Solved Empty


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Culverton smith
Junior Member
Join Date: Apr 2021
Old 05-01-2021 , 16:40   Empty
Reply With Quote #1

Hello. How do I set a if for a return, that returns nothing? I do not mean 0. I mean empty. like:
Code:
get_user_info(id, name, "name", 32);
For example, if the player name is empty here, how can I set if?

like
Code:
if(player name is empty)
{
      // do player
}

Last edited by Culverton smith; 05-02-2021 at 03:09.
Culverton smith is online now
JocAnis
Veteran Member
Join Date: Jun 2010
Old 05-01-2021 , 18:30   Re: Empty
Reply With Quote #2

Check if string is empty by:
Code:
if( !string[ 0 ] )

OR

if( string[ 0 ] == EOS )
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...)
JocAnis is offline
Culverton smith
Junior Member
Join Date: Apr 2021
Old 05-02-2021 , 03:08   Re: Empty
Reply With Quote #3

Quote:
Originally Posted by JocAnis View Post
Check if string is empty by:
Code:
if( !string[ 0 ] )

OR

if( string[ 0 ] == EOS )
Works. Thank you
Culverton smith is online now
Reply


Thread Tools
Display Modes

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 13:51.


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