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

Undifined symbol "is_blank"


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
oussama_madjmaa
New Member
Join Date: Aug 2019
Old 08-20-2019 , 14:31   Undifined symbol "is_blank"
#1

Hi; i'm new in this forum
i want to fix problem undifined symbol "is_blank"
please help me

PHP Code:
new szName[33], szArgs[192], szPrefix[16];
                
get_user_name(idszNamecharsmax(szName));
                
read_args(szArgscharsmax(szArgs));
                
remove_quotes(szArgs);
                
trim(szArgs);
                if(
is_blank(szArgs))
                        return 
PLUGIN_HANDLED
thanks

Last edited by oussama_madjmaa; 08-20-2019 at 17:32.
oussama_madjmaa is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 08-20-2019 , 15:59   Re: Undifined symbol "is_blank"
#2

So you thought this session would be the most appropriate place and not the "Scripting Help" session.

Congratulations, you are a donkey.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Foxa
Member
Join Date: Nov 2018
Location: Croatia
Old 08-20-2019 , 18:01   Re: Undifined symbol "is_blank"
#3

Even if youre new to the forum you can read right? There is literally a sub-forum right under this one called "Scripting" and under it "Scripting Help". Did you even look through the forum before posting? But whatever..

You need to make a is_blank function before using it since it doesnt exist, something like this should work.

PHP Code:
bool:is_blank(szString[]){
    return 
szString[0]==EOS true false;


Last edited by Foxa; 08-20-2019 at 18:06.
Foxa is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-21-2019 , 05:28   Re: Undifined symbol "is_blank"
#4

Quote:
Originally Posted by Foxa View Post
PHP Code:
bool:is_blank(szString[]){
    return 
szString[0]==EOS true false;

PHP Code:
bool:is_blank( const szString[ ] )
{
    return !
szString];

__________________

Last edited by edon1337; 08-21-2019 at 05:28.
edon1337 is offline
Old 08-21-2019, 10:07
Natsheh
This message has been deleted by Natsheh. Reason: Nvm edon made a big optimization..... :'O
Closed Thread


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 02:50.


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