I need to have plugin FriendAPI as reference inside my plugin:
[PluginReference("0friendsAPI")]
Plugin 0friendsAPI;
0f marks that as a not valid token!
[DOUBLEPOST=1452722005][/DOUBLEPOST](of)riendsAPI;
[DOUBLEPOST=1452722018][/DOUBLEPOST]That 0f its a Zero
Solved Plugin reference not working
Discussion in 'Rust Development' started by TheMechanical97, Jan 13, 2016.
-
[PluginReference]
Plugin 0friendsAPI;
Give this a try.
Make sure to also use this, you can do it in the Loaded() hook.
if (!0friendsAPI)
PrintWarning("You need to have this plugin installed, go to ...); -
Wulf Community Admin
It's a zero, not a letter o. You also do not need to reference it two times, the part in quotations is for the literal reference, the 2nd part is for a friendly name if desired. Plugin references rely on the plugin filename to be exact, otherwise they will not work.
Code:[PluginReference("0friendsAPI")] FriendsAPI
-
Ty
!