AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   amxcore "property" natives (https://forums.alliedmods.net/showthread.php?t=253665)

klippy 12-26-2014 08:17

amxcore "property" natives
 
Just few minutes ago I was browsing through amxcore.cpp code, and I found these native declarations:
PHP Code:

static cell AMX_NATIVE_CALL getproperty(AMX *amx,cell *params);
static 
cell AMX_NATIVE_CALL setproperty(AMX *amx,cell *params);
static 
cell AMX_NATIVE_CALL delproperty(AMX *amx,cell *params);
static 
cell AMX_NATIVE_CALL existproperty(AMX *amx,cell *params); 

Why aren't they included in AMXX? I don't see them in any include file nor in
PHP Code:

AMX_NATIVE_INFO core_Natives[]; 

I didn't try to understand the code, but I believe they are some kind of Key=>Value pairs?
Are they still in development, or were they deprecated, or is it something else? I am just wondering...

fysiks 12-26-2014 12:52

Re: amxcore "property" natives
 
Quote:

Originally Posted by KliPPy (Post 2240186)
Are they still in development, or were they deprecated, or is it something else? I am just wondering...

What version are you looking at? Have you looked at the repository history? You should be able to find where they were either added to the core or removed from an include file or other things that might have happened.

Arkshine 12-26-2014 17:40

Re: amxcore "property" natives
 
Probably removed from the start. Why? Unsure, but I would suspect because natives design were horrible/slow, getproperty outputs a packed string which was probably unwanted.

Some example of use here: http://wiki.sa-mp.com/wiki/Setproperty

klippy 12-26-2014 18:41

Re: amxcore "property" natives
 
Well, I guess Tries serve the exact same purpose, but are even better. Thanks. :)


All times are GMT -4. The time now is 02:35.

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