AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   if the character string does not contain X (https://forums.alliedmods.net/showthread.php?t=160142)

EclipseCP 06-25-2011 12:21

if the character string does not contain X
 
hello

I'm doing a kind of system and I want to know how to do this:

If the string does not contain an @

PHP Code:

        if (!contain(string"@"))
        {
            
client_print(idprint_center"Must contain an @"
            
return 2;
        } 

grettings

nikhilgupta345 06-25-2011 12:25

Re: if the character string does not contain X
 
PHP Code:

if( containstring"@" ) == -)
{
     
client_printidprint_chat"This string does not contain an @." );




All times are GMT -4. The time now is 23:25.

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