Raised This Month: $ Target: $400
 0% 

fm_set_kvd problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 12-30-2011 , 02:11   fm_set_kvd problem
Reply With Quote #1

I get this :
Code:
// C:\Program Files (x86)\Counter-strike 1.6\cstrike\addons\amxmodx\scripting\um
brella_swarm.sma(290) : error 017: undefined symbol "fm_set_kvd"
PHP Code:
    new ent engfunc(EngFunc_FindEntityByString, -1"classname""info_map_parameters")
    if(!
ent) { ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_map_parameters")); }
    
fm_set_kvd(ent"buying""1");
    
dllfunc(DLLFunc_Spawnent
PHP Code:
stock fm_set_kvd(entity, const key[], const value[], const classname[] = "") {
    if (
classname[0])
        
set_kvd(0KV_ClassNameclassname); 
    else {
        new class[
32];
        
pev(entitypev_classname, class, sizeof class - 1);
        
set_kvd(0KV_ClassName, class);
    }

    
set_kvd(0KV_KeyNamekey);
    
set_kvd(0KV_Valuevalue);
    
set_kvd(0KV_fHandled0);

    return 
dllfunc(DLLFunc_KeyValueentity0);

DoviuX is offline
Send a message via Skype™ to DoviuX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-30-2011 , 04:31   Re: fm_set_kvd problem
Reply With Quote #2

Include fakemeta_util, or better use directly DispatchKeyValue (faster).
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-30-2011 , 04:33   Re: fm_set_kvd problem
Reply With Quote #3

Usually when you get an "undefined" error and it's clearly defined then you forgot to close a brace.
__________________
fysiks is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 12-30-2011 , 10:24   Re: fm_set_kvd problem
Reply With Quote #4

fysiks yeah, i used your php script thingy to find where thanks
DoviuX is offline
Send a message via Skype™ to DoviuX
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:28.


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