Jumpin Posted March 9, 2021 Share Posted March 9, 2021 (edited) Hi, i just wanna try to do a simple gamemode bust allready failed in the first lines.. This is my code: using System; using GTANetworkAPI; namespace ClassLibrary1 { public class Main : Script { [ServerEvent(Event.ResourceStart)] public void OnResourceStart() { NAPI.Util.ConsoleOutput("Working."); } [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Player player) { NAPI.Util.ConsoleOutput($"{player.Name} joined."); } } } The error is in line 14: "public void OnPlayerConnected(Player player)" Edited March 9, 2021 by Jumpin Link to comment Share on other sites More sharing options...
WarstekHUN Posted March 22, 2021 Share Posted March 22, 2021 (edited) Are you using RageMP 1.1 or 0.3.7? In 1.1 you have to load as an assembly/reference boostrapper.dll what you can find on this location: \your-servers-folder\dotnet\runtime\Bootstrapper.dll Edited March 22, 2021 by WarstekHUN Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now