AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Run time error 3: stack error in Kz-Arg (https://forums.alliedmods.net/showthread.php?t=94691)

FiFiX 06-14-2009 08:32

Run time error 3: stack error in Kz-Arg
 
I've got problem with fm_strip_user_weapons(index) in Kz-Arg Mod..

Code:

new const g_RemoveEntities[][] =
{
    "func_bomb_target", "info_bomb_target", "hostage_entity", /*"func_breakable",*/
    "monster_scientist", "func_hostage_rescue", "info_hostage_rescue",
    "info_vip_start", "func_vip_safetyzone", "func_escapezone",
    "armoury_entity", "game_player_equip", "player_weaponstrip",
    "info_deathmatch_start" // TT Spawn :D
};

// From fakemeta_util
stock fm_strip_user_weapons(index)
{
    new ent = fm_create_entity("player_weaponstrip");
    if (!pev_valid(ent))
        return 0;

    set_pev(ent, pev_owner, index);   
    dllfunc(DLLFunc_Spawn, ent);
    dllfunc(DLLFunc_Use, ent, index);
    engfunc(EngFunc_RemoveEntity, ent);

    return 1;
}

Thats the function
And that's error:
Code:

L 06/13/2009 - 20:39:32: [AMXX] Run time error 3: stack error
L 06/13/2009 - 20:39:32: [AMXX]    [0] kz_jumpplugin.sma::fm_strip_user_weapons

Any ideas how to slove that staying in basic modules from kz-arg?


All times are GMT -4. The time now is 13:59.

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