Code:
callfunc_begin(ItemCommand[id][UserCurrentItem[id]],"RolePlay.amxx")
callfunc_push_int(id)
callfunc_end()
What function is this:
ItemCommand[id][UserCurrentItem[id]]?
Also you don't need "RolePlay.amxx" on the end if your calling within your own plugin.
Code:
callfunc_begin("some_function")
callfunc_push_int(id)
callfunc_end()
public some_function(id)
{
// your code here
}
Note that the function your pointing to needs to be declared public.
There is a better method for performance which is...
Code:
new FuncYourFunction
public plugin_init()
{
FuncYourFunction = get_func_id("your_function")
}
public some_function()
{
callfunc_begin_i(FuncYourFunction)
callfunc_push_int(id)
callfunc_end()
}
public your_function(id)
{
// some code
}
The reason this is better on performance if you are going to call this quite often is that integers are faster at parsing than strings.
__________________