Raised This Month: $32 Target: $400
 8% 

amxcore "property" natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-26-2014 , 08:17   amxcore "property" natives
Reply With Quote #1

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...
klippy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-26-2014 , 12:52   Re: amxcore "property" natives
Reply With Quote #2

Quote:
Originally Posted by KliPPy View Post
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.
__________________
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-26-2014 , 17:40   Re: amxcore "property" natives
Reply With Quote #3

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
__________________
Arkshine is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-26-2014 , 18:41   Re: amxcore "property" natives
Reply With Quote #4

Well, I guess Tries serve the exact same purpose, but are even better. Thanks.
klippy is offline
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 04:27.


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