下面是引用 绝影华 于 2012-03-30 16:30 发表的 关于插件native一问:
我在主插件设定了一个
new leader
例如: leader = 1
如何可以在分插件中令leader的数值改变成2
public plugin_natives()
{
register_native("get_user_killed", "native_get_user_leader ", 1)
register_native("set_user_killed", "native_set_user_leader ", 1)
}
public native_get_user_leader ()
return leader
public native_set_user_leader (ammount)
leader = ammount
希望可以帮帮我 thx
new leader;
register_native("get_test", "native_get_test", 1);
register_native("set_test", "native_set_test", 1);
public native_get_test(id)
{
return leader;
}
public native_set_test(id, value)
{
leader = value;
}