PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin( "test plugin", "1.0", "Dare-Devil" )
register_clcmd("say t", "call_Testing")
}
public call_Testing(id)
{
test(12)
test(21)
test(102)
test(201)
}
test(testparam)
{
static hj
hj++
client_print(0, print_chat, "hj: %d", hj)
}
Quote:
// result:
hj: 1
hj: 2
hj: 3
hj: 4
|
what I hoped
Quote:
// result:
hj: 1
hj: 1
hj: 1
hj: 1
|
so it seems that if function param is different the system still use same variable.
Anyway in the entity thinking i must do
PHP Code:
entitythink(ent)
{
static entvariable[512]
entvariable[Ent] += something
}
this way my data will not get corrupted.
I get all information what i want, thanks!