Okay here goes!
Lets say I want to modify the input of server_print when my script uses it.
It has to be in the .inc file and may not have a different name!
Eh a bit messy but, example:
script.sma
Code:
#include <amxmodx>
#include <myinc>
myfunc()
{
server_print("Hello")
}
myinc.inc
Code:
stock server_print(input)
{
if( input == "hello" )
{
input = "hello pm"
}
server_print( input ) //Now this should call the original server_print function!
}
Now I want to pass the modified server_print string to the original server_print function, how?
Before you ask, I need this to make certain amxmod scripts compile without modification ;)
__________________