AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with next map (https://forums.alliedmods.net/showthread.php?t=87994)

The Wizard 03-19-2009 04:57

Help with next map
 
i get next map like this:

new nextmap[32]
get_cvar_string("amx_nextmap", nextmap, 31)

now, how to do: if arg = nextmap don't change nextmap, show text...

i've tried like this...
Code:

        new nextmap[32]
        get_cvar_string("amx_nextmap", nextmap, 31)
        if(arg = nextmap)
                {
                        client_print(id, print_console, "%L", id, "xxx", arg)
                        return PLUGIN_HANDLED
                }


xPaw 03-19-2009 05:01

Re: Help with next map
 
PHP Code:

if( equal(argnextmap) ) 


The Wizard 03-19-2009 08:42

Re: Help with next map
 
thx +k for you :)

equali work better. because with equal de_dust is not the same with de_Dust

equali - Checks if two strings are equal, case insensitively

Arkshine 03-19-2009 08:57

Re: Help with next map
 
Depending the need ( if arg is from client command ), equali may can more appropriate.


All times are GMT -4. The time now is 08:53.

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