Raised This Month: $12 Target: $400
 3% 

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 offline
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...) - not active (dec 2022)
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 offline
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 07:00.


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