Raised This Month: $51 Target: $400
 12% 

[REQ] Some form of calling natives


  
 
 
Thread Tools Display Modes
Author Message
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-03-2006 , 19:06   [REQ] Some form of calling natives
#1

Just asking that a form of calling natives via a string could be added. Something like the way CreateMultiForward works, except to call a native instead of a function.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 11-04-2006 , 06:57   Re: [REQ] Some form of calling natives
#2

I would prefer the callfunc style
but i think bailopan will reject this.
I requested this also months ago, and it got rejected...

but yeah it would be usefull
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
Ingram
Veteran Member
Join Date: May 2004
Old 11-04-2006 , 07:15   Re: [REQ] Some form of calling natives
#3

I don't understand... why just not import the include...?
Ingram is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2006 , 09:54   Re: [REQ] Some form of calling natives
#4

Quote:
Originally Posted by JJkiller View Post
I don't understand... why just not import the include...?
So you can do a command like:

amx_callnative "set_user_health" "1" "500"
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 11-04-2006 , 10:03   Re: [REQ] Some form of calling natives
#5

yeah that was the idea of my request ( simple port of my callfunc plugin )
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
Ingram
Veteran Member
Join Date: May 2004
Old 11-04-2006 , 11:44   Re: [REQ] Some form of calling natives
#6

yeah I got that part... I'm saying why not just do set_user_health (1,500) ?
Ingram is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2006 , 11:46   Re: [REQ] Some form of calling natives
#7

Quote:
Originally Posted by JJkiller View Post
yeah I got that part... I'm saying why not just do set_user_health (1,500) ?
... because in order to interpret it that way, you'd need to make a function for each and every native. You would also need to modify it whenever any native was changed.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 11-04-2006 , 12:06   Re: [REQ] Some form of calling natives
#8

Hello,

may I ask what you would need something like this for?

EDIT: I have read your amx_callnative thing.
Why would you want amx_callnative? o_O

Thanks,
PM
__________________
hello, i am pm
PM is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2006 , 12:08   Re: [REQ] Some form of calling natives
#9

Quote:
Originally Posted by PM View Post
Hello,

may I ask what you would need something like this for?

Thanks,
PM
...

Why does it really matter?

I wanted to try to make an interpreter, which would be pretty useless if it was impossible to call a native based on a string.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 11-04-2006 , 12:15   Re: [REQ] Some form of calling natives
#10

Quote:
Originally Posted by Hawk552 View Post
...

Why does it really matter?

I wanted to try to make an interpreter, which would be pretty useless if it was impossible to call a native based on a string.
It matters because I think that implementing weird features which you don't see any need for is not really the dev team's biggest hobby

So.. You want to make an AMX Mod X plugin.. which.. interprets AMX Mod X plugins?

Do you have any technical reason to do this or is it a "just for fun" project?
__________________
hello, i am pm
PM is offline
 



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 15:25.


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