AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   (OLD) Bug Reports (https://forums.alliedmods.net/forumdisplay.php?f=24)
-   -   [REQ] Some form of calling natives (https://forums.alliedmods.net/showthread.php?t=46832)

Hawk552 11-03-2006 19:06

[REQ] Some form of calling natives
 
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.

Greenberet 11-04-2006 06:57

Re: [REQ] Some form of calling natives
 
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

Ingram 11-04-2006 07:15

Re: [REQ] Some form of calling natives
 
I don't understand... why just not import the include...?

Hawk552 11-04-2006 09:54

Re: [REQ] Some form of calling natives
 
Quote:

Originally Posted by JJkiller (Post 399414)
I don't understand... why just not import the include...?

So you can do a command like:

amx_callnative "set_user_health" "1" "500"

Greenberet 11-04-2006 10:03

Re: [REQ] Some form of calling natives
 
yeah that was the idea of my request ( simple port of my callfunc plugin )

Ingram 11-04-2006 11:44

Re: [REQ] Some form of calling natives
 
yeah I got that part... I'm saying why not just do set_user_health (1,500) ?

Hawk552 11-04-2006 11:46

Re: [REQ] Some form of calling natives
 
Quote:

Originally Posted by JJkiller (Post 399521)
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.

PM 11-04-2006 12:06

Re: [REQ] Some form of calling natives
 
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

Hawk552 11-04-2006 12:08

Re: [REQ] Some form of calling natives
 
Quote:

Originally Posted by PM (Post 399537)
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.

PM 11-04-2006 12:15

Re: [REQ] Some form of calling natives
 
Quote:

Originally Posted by Hawk552 (Post 399539)
...

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?


All times are GMT -4. The time now is 19:27.

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