AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Undifined symbol "is_blank" (https://forums.alliedmods.net/showthread.php?t=318225)

oussama_madjmaa 08-20-2019 14:31

Undifined symbol "is_blank"
 
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

iceeedr 08-20-2019 15:59

Re: Undifined symbol "is_blank"
 
So you thought this session would be the most appropriate place and not the "Scripting Help" session.

Congratulations, you are a donkey.

Foxa 08-20-2019 18:01

Re: Undifined symbol "is_blank"
 
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;



edon1337 08-21-2019 05:28

Re: Undifined symbol "is_blank"
 
Quote:

Originally Posted by Foxa (Post 2664027)
PHP Code:

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



PHP Code:

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




All times are GMT -4. The time now is 21:47.

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