Raised This Month: $ Target: $400
 0% 

DLLFunc_KeyValue (wtf m8?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-14-2005 , 19:37   DLLFunc_KeyValue (wtf m8?)
Reply With Quote #1

DLLFunc_KeyValue, // void ) ( edict_t *pentKeyvalue, KeyValueData *pkvd );

How the hell do you use KeyValue to set one key value onto one entity? It only takes a keyvalue and a value, I'm so confused ;_;

In the engine C++ version of the native DispatchKeyValue, it uses a storage type KeyValue, which we can unfortunately, not make in small.

Code:
        cell *cVal = MF_GetAmxAddr(amx, params[1]);         int iValue = *cVal;         CHECK_ENTITY(iValue);         edict_t *pEntity = INDEXENT2(iValue);         KeyValueData kvd;         int iLength=0;         char *char1 = MF_GetAmxString(amx, params[2], 0, &iLength);         char *char2 = MF_GetAmxString(amx, params[3], 1, &iLength);         kvd.szClassName = (char*)STRING(pEntity->v.classname);         kvd.szKeyName = char1;         kvd.szValue = char2;         kvd.fHandled = 0;         MDLL_KeyValue(pEntity, &kvd);

See? Its different. So how the hell do we use this command for ONLY ONE entity, in small, through FM.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Reply


Thread Tools
Display Modes

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 14:10.


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