AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   DispatchKeyValue problems (https://forums.alliedmods.net/showthread.php?t=207479)

4554 02-03-2013 01:22

DispatchKeyValue problems
 
Hello everybody,
Code:

public pfn_keyvalue(entid)
{
        new classname[32], key[32], value[32]
        copy_keyvalue(classname, 31, key, 31, value, 31)

        if(equal(key, "monstertype") && equal(value, "monster_headcrab"))
        {
                DispatchKeyValue("monstermaker", "func_wall")
        }
}

The problem is that classname of there have not changed to func_wall

however, other function work fine
Code:

DispatchKeyValue("classname", "func_wall")


All times are GMT -4. The time now is 20:38.

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