下面是引用 絕影華 於 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;
}